更新 app/Models/City.php
All checks were successful
Deploy preview (main_ou) / deploy (push) Successful in 12s
All checks were successful
Deploy preview (main_ou) / deploy (push) Successful in 12s
This commit is contained in:
parent
da1fcc92c4
commit
66ad57252f
@ -7,18 +7,28 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
class City extends Model
|
class City extends Model
|
||||||
{
|
{
|
||||||
protected $table = 'city';
|
protected $table = 'city';
|
||||||
|
public $timestamps = true;
|
||||||
|
|
||||||
protected $primaryKey = 'city_id';
|
protected $primaryKey = 'city_id';
|
||||||
|
protected $fillable = [
|
||||||
|
'city_id',
|
||||||
|
'city_name',
|
||||||
|
'print_layout',
|
||||||
|
'city_user',
|
||||||
|
'city_remarks',
|
||||||
|
'created_at',
|
||||||
|
'updated_at',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 都市のリストを取得
|
||||||
|
*/
|
||||||
|
public static function getList()
|
||||||
|
{
|
||||||
|
return self::all();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected $fillable = [
|
|
||||||
'city_id',
|
|
||||||
'city_name',
|
|
||||||
'print_layout',
|
|
||||||
'city_user',
|
|
||||||
'city_remarks',
|
|
||||||
'created_at',
|
|
||||||
'updated_at',
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user