Updated FilamentType Model
This commit is contained in:
@@ -7,9 +7,16 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class FilamentType extends Model
|
||||
{
|
||||
protected $table = 'filament_types';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
// FilamentType has many filaments
|
||||
public function filaments()
|
||||
{
|
||||
return $this->hasMany(Filament::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user