#### Category : nova

I’m looking for a way to override the cancel and update buttons on a resource. I’m new’ish to Nova. I would like to add a class to the container for the cancel and update actions (see image). So far I can’t figure out how to do that. There doesn’t seem to be any unique class ..

Read more

When trying to update a resource in Laravel Nova that has a Observer the update loads for a while and then ends with a 502 error. The observer is registered correctly (the created method works fine) and I’m not trying to do anything special in the updated method. Any ideas? public function updated(Model $model) { .. Read more I have this filtering in nova by city name but when I click on a city it doesn’t show me anything with that name. What is wrong? public function apply(Request$request, $query,$value) { return $query->where(‘id’, ‘name’)->get(); } /** * Get the filter’s available options. * * @param IlluminateHttpRequest$request * @return array */ public ..

Read more

I am trying to convert an array to string using implode function inside nova resource and it’s working fine but when i’m trying to download the same file it’s showing error that " implode() : invalid argument passed " .. Here is my Nova Resource file .. SubscriptionPlanReport.php : <?php namespace AppNova; use IlluminateHttpRequest; use ..

Read more

I have a created a single action in my nova resource and whenever I want to run the action , I have to click on the checkboxes and then I have to select the action in the action dropdown list .. As I have only one action in my resource , I want the action ..

Read more

Il suffit de passer les paramètres en tableau. Exemple Policy: function attachModel($userRequest,$model1, $model2) {…} Test :$userRequest->can(‘attachModel’, [$model1,$model2]); Sourc..

Read more

how I can do a filter by county name in nova? public function apply(Request $request,$query, $value) { return$query->where(‘county’, $value); } /** * Get the filter’s available options. * * @param IlluminateHttpRequest$request * @return array */ public function options(Request $request) { return [ ‘County’ => ‘county’, ]; } Nothing is displayed, I can’t .. Read more I have a really long resource update form page in Laravel Nova – containing many fields. I’m filling the form on tablet / mobile and I need to save this long form regularly. Is it somehow possible to autosave form or at least make buttons (Cancel, Update & Continue Editing, Update) floating / fixed and .. Read more I’m new to Nova Laravel. How can I add an action button before id? Action button like edit, delete and view. In some cases, I have a lot of data in index and difficult to manage action button. Sourc.. Read more I’m new to Nova Laravel. How can I add an action button before id? Action button like edit, delete and view. In some cases, I have a lot of data in index and difficult to manage action button. Sourc.. Read more In laravel nova resource index i want to add custom input fields(text form checkbox) to interact with table via submit button. I want the same operation with filters. But i don’t want in table’s right corner. I want them above the table. Is also possible to hide default create button and form? how i set .. Read more I have a problem with Laravel Nova, it is very weird and it happen suddenly. When I enter to /nova/login. Perfect, I log in and plaf, error 404. I try to enter to a resource by URL /nova/resources/blabla-nova. And guess, it works, but if I refresh this page, guess, error 404. Another issue, or I .. Read more I’m trying to use this package to upload records to a model with a polymorphic relationship without success. Information about the project: A coupon can have a code. A coupon belongs to any of the next models: Reward, Experience or Ticket. Any of those models can have many coupons. A user can have many coupons. .. Read more Let us say that have tables called articles and relatedArticles. Articles is an extension of an eloquent model, and relatedArticles is a pivot model. class AuthServiceProvider extends ServiceProvider { public function boot() {$classes = []; Gate::guessPolicyNamesUsing(function ($modelClass) use(&$classes) { $classes[] =$modelClass; } dd(\$classes); } } Running will return [‘articles’], but not [‘articles’,’relatedArticles’] because ..

Read more

in my use case, I need more than one text box for searching in more than two fields in the index view at the same time, because there too much data, laravel-nova provide only one out of the box, so if there is a way that I can add search in a card and update ..

Read more

I have a mysql table called kpis with several kpis inside, i will want to show a kpis index but not in laravel nova resources index table but in a dashboard with a card for each kpi. which would be a good way to do this ? Source: Laravel Sta..

Read more