classify admin
This commit is contained in:
22
app/Models/CategoryTranslation.php
Normal file
22
app/Models/CategoryTranslation.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CategoryTranslation extends Model {
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'language_id',
|
||||
'category_id'
|
||||
];
|
||||
|
||||
public function language() {
|
||||
return $this->belongsTo(Language::class);
|
||||
}
|
||||
|
||||
public function category() {
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user