staff members,senderid, documents,bug fixes, etc
This commit is contained in:
17
app/Models/OfficeLocation.php
Normal file
17
app/Models/OfficeLocation.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OfficeLocation extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
}
|
||||
public function country_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'country_manager_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user