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.
25 lines
384 B
25 lines
384 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Strategy extends Model
|
||
|
{
|
||
|
|
||
|
protected $fillable = [
|
||
|
'user_id', 'category_id', 'topic', 'name_en', 'name_fa', 'text'
|
||
|
];
|
||
|
|
||
|
public function category()
|
||
|
{
|
||
|
return $this->belongsTo('App\Category');
|
||
|
}
|
||
|
|
||
|
public function user()
|
||
|
{
|
||
|
return $this->belongsTo('App\User');
|
||
|
}
|
||
|
|
||
|
}
|