working on loan orders
This commit is contained in:
1 parent
83cc460638
commit
5e35dd6a11
14 files changed
+336
-5
No files matched your search
@@ -10,6 +10,7 @@
|
||||
use Laravel\Nova\Fields\Select;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
use Trin4ik\NovaSwitcher\NovaSwitcher;
|
||||
|
||||
class Province extends Resource
|
||||
{
|
||||
@@ -25,7 +26,7 @@ class Province extends Resource
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $title = 'id';
|
||||
public static $title = 'name';
|
||||
|
||||
/**
|
||||
* The columns that should be searched.
|
||||
@@ -70,6 +71,9 @@ public function fields(NovaRequest $request): array
|
||||
|
||||
Text::make(__('Name'), 'name')
|
||||
->rules('required', 'string', 'max:255'),
|
||||
|
||||
NovaSwitcher::make(__('Active'), 'active')
|
||||
->default(true),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user