Laravel Nova Release Notes
brand
configuration option has been added to the nova
configuration file, allowing you to easily customize the “primary color” and logo used within the Nova interface without the need to create a custom Nova “theme”:
Action::then
method allows you to easily execute code after an action has finished executing against all of its selected resources. This feature allows you to easily generate reports or send notifications when an action has finished executing:
Color
, UiAvatar
, MultiSelect
, and URL
. For more information on using these fields, please consult the field documentation.
dependsOn
method allows you to specify that a field’s configuration depends on one or more other field’s values. The dependsOn
method accepts an array
of dependent field attributes and a closure that modifies the configuration of the current field instance.
Dependent fields allow advanced customization, such as toggling read-only mode, validation rules, and more based on the state of another field:
filterable
method that allows you to enable convenient, automatic filtering functionality for a given field on resources, relationships, and lenses without creating a custom filter. The Nova generated filter will automatically be made available via the resource filter menu on the resource’s index:
NovaNotification
instance to a notifiable user:
Laravel\Nova\Auth\Impersonatable
trait to your application’s User
model:
Impersonatable
trait has been added to your application’s User
model, an “Impersonate” action will be available via the inline action menu for the corresponding resource:
HasOne
relationship field can now be transformed into an “has one of many” Eloquent relationship using the ofMany
method. For example, let’s assume a User
model hasMany
Post
models. We may add the “has one of many” relationship to our User
Nova resource like so:
HasOne
relationships may now create the data for those relationships directly in the parent resource’s creation form. This new ability makes it a breeze to create the parent resource and its child in one, convenient operation:
LIKE
clauses. However, if you are using MySQL or Postgres, you may now take advantage of any full-text indexes you have defined: