You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
399 B
22 lines
399 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class SpUserFacility extends Model{
|
||
|
protected $fillable = [
|
||
|
'sp_user_template_id', 'sp_facility_id', 'is_enable'
|
||
|
];
|
||
|
public function facility()
|
||
|
{
|
||
|
return $this->belongsTo('App\\SpFacility');
|
||
|
}
|
||
|
|
||
|
public function user_template()
|
||
|
{
|
||
|
return $this->belongsTo('App\\SpUserTemplate');
|
||
|
}
|
||
|
|
||
|
}
|