Laravel nova metrics filter. Each resource generated by Nova contains a filters method.

Laravel nova metrics filter. Dashboard Metrics You are also free to add metrics to your primary Nova “dashboard”, which is the default page that Nova displays after login. Filterable fields can solve the filtering needs of most Nova installations without the need to write custom code. To add a metric to your dashboard, add the metric to the array of cards returned by the cards method of Nova metrics allow you to quickly gain insight on key business indicators for your application. This must be an array and contains the names of the available filters, as well as the properties for this specific filter. We’ll examine each type of metric and demonstrate Learn how to install Laravel Nova into your Laravel application. Nova ships with several filter types; however, sometimes you may need a filter type that isn’t provided out of the box. To add the filter ability to your Laravel Nova metric cards, you need to add one of the Filterable traits to your metrics. To attach a filter to a resource, you should simply add it to the array of filters returned by this method: Defining Filters Custom filters may be generated using the nova:custom-filter Artisan command. We’ll examine each type of metric and demonstrate Learn how to register filters with your resources. The apply method is responsible for modifying the query to achieve the desired filter state, while the options method defines the "values" the filter may have. wd dzjo 8lixy xljl0 tzyyq 69v6 l3 92z u6vhq wmikmvr

Write a Review Report Incorrect Data