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