Questions tagged [laravel-nova]

Nova is an administration panel for Laravel, made by the creators of Laravel

Code Driven Configuration

Configure your entire Nova dashboard with simple PHP code. None of your Nova configuration is stored in the database. Painless to configure. Painless to deploy.

Keeps Your Application Pure

It’s a breeze to add a Nova administration panel to an existing Laravel application without touching your Eloquent models. After configuring a Nova resource for each model, you’re ready for lift off.

Laravel + Vue.js = ❤️

Nova is a sleek, single-page application built with Laravel and Vue.js. It's as smooth as silk and writing custom components is a cinch.

Feature Overview

  1. Resource Management
  2. Actions
  3. Filters
  4. Lenses
  5. Metrics
  6. Custom Tools
  7. Authorization
  8. Custom Fields
  9. Scout Search Integration

Resources

Laravel Nova Website

Documentation

880 questions
7
votes
1 answer

Nova Filters - filter a resource with a belongsTo relationship?

How can i create a Nova filter that will allow me to filter my Question resource by another resource called Module? The question belongsTo to the module (module_id is FK on Questions). So for the apply method i have: public function apply(Request…
Adnan
  • 3,129
  • 6
  • 31
  • 36
7
votes
1 answer

Laravel Nova - Display text area content without option show content

I would like to display text area resource field content always without showing option "Show Content" or display it by default. Is it possible?
Saumini Navaratnam
  • 8,439
  • 3
  • 42
  • 70
7
votes
1 answer

Enabling certain roles to access Laravel Nova dashboard?

I have the Spatie Permissions package installed, and I have created policies to restrict access for my models using this package. However, I'm struggling a bit on the creating a gate to enable certain roles such as 'Admin' and 'Content Editor' to…
Adnan
  • 3,129
  • 6
  • 31
  • 36
6
votes
1 answer

Laravel Nova 4 customize layout

Since Nova 4 has no blades anymore that you could publish, how could you approach customization the best in for example the head navbar next to the searchbar? I'd like to add a drop-down there but I don't know where to start or what to change? In…
NoahNxT
  • 156
  • 12
6
votes
1 answer

Laravel Nova: DateTime in Model Timezone

I want Laravel Nova to handle a DateTime field (stored in the database in UTC) in a custom timezone based on the Model and not in the User's timezone it does by default: https://nova.laravel.com/docs/3.0/resources/date-fields.html#timezones The…
6
votes
0 answers

Make text and custom fields sortable using Laravel Nova Indicator Field?

I would like to make my text and custom fields sortable. But I haven't found a single page which explains me how this works. Either these: Text::make('Type', function () { return $this->productType->name; }) ->sortable(), or this is…
Jan
  • 1,180
  • 3
  • 23
  • 60
6
votes
0 answers

Laravel Nova Reference a Field Value From another Field

As I know to reference a Nova Field you can use the $this object in the Fields Function. So I have this code, my problem is that these values are empty and should not: $this->origin_coordinates $this->destination_coordinates Even though my Index…
ronny torres
  • 131
  • 4
6
votes
0 answers

Laravel Nova Vue component not being rendered

I have a laravel nova package where I define a custom vue component like this: Nova.booting((Vue, router, store) => { Vue.component('my-component', require('./components/MyComponent').default); }); I use it in a custom field like…
user3743266
  • 1,124
  • 4
  • 16
  • 28
6
votes
6 answers

Laravel nova action - get current model instance on fields()

Laravel 5.8 Nova 2.0 In nova action public function fields() { return []; } Is there any way to access currently selected rows here?
Prafulla Kumar Sahu
  • 9,321
  • 11
  • 68
  • 105
6
votes
1 answer

Laravel nova - use action to allow multiple download

In laravel Nova 2.0 To initiate a file download after the action is executed, you may use the Action::download method. The download method accepts the URL of the file to be downloaded as its first argument, and the desired name of the file as…
Prafulla Kumar Sahu
  • 9,321
  • 11
  • 68
  • 105
6
votes
2 answers

How to use a Laravel Nova Component in a Custom Nova Tool

I'd like to use the same loader as Laravel Nova uses when it's components are loading. I can't get it to compile. It never recognizes where to load the LoadingCard component from. Any help would be appreciated.