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

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

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 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

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