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
3
votes
1 answer

Laravel Nova 2 models in 1 resource

In my case i have a User Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('address_id')->nullable(); $table->foreign('address_id')->references('id')->on('addresses'); …
OhDigiT
  • 61
  • 5
3
votes
2 answers

Enable VueJS DevTools for Laravel Nova

I want to inspect the underlying behavior of Laravel Nova(or custom field) and i am trying to enable the devtools. On the top right corner I can see the green icon of VueJS but when i go to the console there is no tab for VueJS How can i enable it…
linkmarine
  • 93
  • 2
  • 8
3
votes
4 answers

Exception Creating New Resource in Laravel Nova - Class 'App\Post' not found

I have a brand new installation of Laravel Nova. The dashboard comes up fine. But when I add a new resource using php artisan nova:resource Post and reload the dashboard, it's throwing an error. When I remove the offending model from Nova folder,…
3
votes
1 answer

Laravel Nova - Can`t see validation error messages

I`m working on a project with Nova dashboard. For some reason I can`t see validation error messages. If there is an validation error, I can see that as an exception in browser console. But not in Nova UI. I can see success message, if all fields of…
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
3
votes
1 answer

Laravel nova overriding/setting custom value for the Fields or Has Through relationship

I am developing a Web application using Laravel. For the admin panel, I am using Laravel Nova. What I am trying to do now is that I need to use data from the table which has relationship through another table. To be, clear, see my database structure…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
1 answer

Change resource url for Nova resource

I've got a model named "Card" but if I use it as Nova Resource, I get an error because it tries to call the "Nova Cards" api instead of my custom resource. How can avoid id?
alberto-bottarini
  • 1,213
  • 9
  • 21
3
votes
2 answers

How can create a Nova filter to filter a resource by its relation?

I have a question resource that has many categories (many to many relation). I would like to create a filter the question resource for different categories.
Adnan
  • 3,129
  • 6
  • 31
  • 36
3
votes
2 answers

Laravel Nova - How to filter BelongsTo field choices when creating a new record?

I have a branch, branch_products, and invoices, and invoice_products models. branch has many branch_products, branch has many invoices, invoices has many invoice_products branch_products has many invoice_products Now going back to the…
3
votes
0 answers

Laravel Nova using nova's components and tools in application (outside of Nova)

Wouldn't it be nice if we could also leverage Nova components (Index, Forms, Detail page, Cards or Tools from novapackages.com) in our external application too and not just be restricted to the nova admin panel? 1- Basically, we would just add the…
BassMHL
  • 8,523
  • 9
  • 50
  • 67
3
votes
0 answers

Laravel Nova custom field vs. resource tool vs. action for something like the Google Drive Picker?

At this early stage of Nova development (and w/ my limited overall experience), I'm having a hard time figuring out when each customization type should be used. In this case... I have a "Customer" resource, and each customer has a…
Matt
  • 795
  • 1
  • 6
  • 20
3
votes
1 answer

How to achieve attach/detach like structure for oneToMany relationship?

Eg. Region and City are two models. Relations are defined as below: Region.php hasMany('App\City'); …
Bharat Jain
  • 500
  • 3
  • 15
3
votes
2 answers

Laravel Nova: Build Components

First post. I'm currently building a Laravel Nova application. I'm making changes to the dashboard component - more specifically the file within the "resources/js/views/Dashboard.vue". I'm struggling to build the component - does anyone know how to…
Tom Hemus
  • 125
  • 2
  • 8
3
votes
4 answers

Laravel Nova - Map database json column to field

I have a database model with json column type called attributes. This column will contain additional details of the model. For example: attributes : {'desc' : 'test', 'width' : '500'}. I would like to display individual attribute (desc & width) in…
Saumini Navaratnam
  • 8,439
  • 3
  • 42
  • 70
3
votes
2 answers

Laravel Nova Polymorphic many-to-many relationship is not working

I am developing a Laravel admin dashboard using Laravel Nova. I am having an issue with using polymorphic many-to-many relationship. Following is my scenario. I have the user table with this definition class User extends Model { public function…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
1 answer

Laravel Nova - Reload index view of a resource

I'm developing my first Nova field. It's an index field that contains a button which sends an Axios request, and when a response is being returned I need to reload the index view. For now I got this: this.$router.go(this.$router.currentRoute); The…
Naxon
  • 1,354
  • 4
  • 20
  • 40