I am in the process of building out my Laravel Nova interface, and adding the necessary fields to each of the resources. However I am noticing that the edit/detail/trash buttons are not appearing on my index view.
Is there something that needs to be added to my resource class, or does it have to do with how my Controllers are built?
This is what my fields method look like:
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
ID::make()->sortable(),
Gravatar::make(),
Text::make('First Name')
->sortable()
->rules('required', 'max:255'),
Text::make('Last Name')
->sortable()
->rules('required', 'max:255'),
Text::make('Email')
->sortable()
->rules('required', 'email', 'max:255')
->creationRules('unique:users,email')
->updateRules('unique:users,email,{{resourceId}}'),
Text::make('Administrator', 'is_admin')
->sortable()
->rules('required', 'max:255'),
Password::make('Password')
->onlyOnForms()
->creationRules('required', 'string', 'min:6')
->updateRules('nullable', 'string', 'min:6'),
HasMany::make('Configuration'),
];
}