İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Types extends Model
|
||||
{
|
||||
//
|
||||
//use SoftDeletes;
|
||||
protected $table = 'types';
|
||||
protected $primaryKey = 'id';
|
||||
public $incrementing = true;
|
||||
public $timestamps = true;
|
||||
|
||||
|
||||
|
||||
public function getRouteKeyName(): string
|
||||
{
|
||||
return 'slug';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user