mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
nova updates
This commit is contained in:
@@ -21,7 +21,7 @@ class City extends Resource
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $title = 'id';
|
||||
public static $title = 'name';
|
||||
|
||||
/**
|
||||
* The columns that should be searched.
|
||||
@@ -30,6 +30,7 @@ class City extends Resource
|
||||
*/
|
||||
public static $search = [
|
||||
'id',
|
||||
'name',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -47,11 +48,10 @@ class City extends Resource
|
||||
->rules('required', 'string'),
|
||||
|
||||
Text::make('Slug')
|
||||
->rules('required', 'string', 'unique:cities,slug'),
|
||||
->exceptOnForms(),
|
||||
|
||||
BelongsTo::make('Country'),
|
||||
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user