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
4
votes
4 answers

how to login using username instead of email in laravel nova?

In my existing laravel project, I handle logins with a username. I've already replaced email with username on app\Nova\User.php please help me how can I do login with username in laravel nova. Thanks in advance.
Man ITech
  • 81
  • 1
  • 4
3
votes
0 answers

Laravel Nova How to display a resource with millions of rows?

I have a resource with 5 million rows in an InnoDB table. Nova times out when executing a COUNT(*) query. I imagine this is used in pagination. Is there a way to disable that behavior (just have a NEXT PREV in pagination) for only one particular…
Michael Love
  • 231
  • 2
  • 3
3
votes
1 answer

Laravel Nova Impersonation - Redirects to / would like to redirect to backend

I'm using the new (as of writing this) Laravel Nova 4.0 and the official impersonation trait / implementation. When I impersonate a user it redirects to the frontend homepage /. I would like it to redirect to /admin in general. If I can achieve…
Grant
  • 5,709
  • 2
  • 38
  • 50
3
votes
0 answers

Adding/Updating a link to an uploaded image in a Trix field

When you drag an image into a Trix field it creates a link to the image source automatically. If you then select the uploaded image in the Trix editor the link/unlink button is grey and unclickable. So you can not remove or update this link to…
alexmcfarlane
  • 1,016
  • 2
  • 13
  • 33
3
votes
2 answers

Laravel: sort query results based on field of nested relationship

I have two models with relations as defined below Order public function owner() { return $this->belongsTo(User::class, 'owner_id'); } User public function company(){ return $this->belongsTo(Company::class, 'company_id'); } company table…
3
votes
3 answers

Laravel Nova installation via composer fails on production server

I have added Laravel Nova to our application and purchased a license. On the local server everything works perfectly. However, when I try to deploy the updated application to our linux server and run composer update it says: Failed to download…
arety_
  • 1,983
  • 2
  • 10
  • 23
3
votes
0 answers

Use relation (for ex. belongsTo) inside KeyValue field in Laravel Nova

Laravel: 8.51 Nova: 3.24 PHP Version: 7.4.20 I have problem with trying to solve this situation: I have a action that uses a KeyValue to handle array of pairs: "product_id" and "amount" field looks like: KeyValue::make(__('Order details'),…
NoAd
  • 141
  • 1
  • 14
3
votes
1 answer

Define fields based on resource's model attributes in Laravel Nova

I have a (relatively) basic need in Nova that I can't seem to figure out and I slowly start to feel that I'm approaching things the wrong way. So, I've got a User, Company, Device and Transfer models and respectively resources, everything pretty…
D. Petrov
  • 1,147
  • 15
  • 27
3
votes
0 answers

Logging in to Laravel Nova using multiple guards

I'm trying to setup a Laravel Nova panel where multiple models can login & have different access via policy methods etc.. But it seems there isn't a documented way to do so. Appreciate any idea or solutions.
Afshin
  • 53
  • 5
3
votes
1 answer

Laravel nova api slow performance

Currently, I have a laravel nova application on a vps, since the domain is linked to the server the performace is very low. All the requests that are slow come from nova-api, they take 15 to 20 seconds per request. I have attached a screenshot that…
3
votes
2 answers

How to create custom page and show it in menu in Laravel Nova?

I'm using Laravel with Laravel Nova for the admin panel. I want to have a page that shows user settings from app/config/some_config.php file. So, how I can add a custom page(without a model) and show a link for this page in the admin panel with a…
GetUnstuck
  • 91
  • 1
  • 8
3
votes
1 answer

Laravel Nova: The login form is in HTTP instead of HTTPS

Context I've installed Laravel Nova, executed the migrations and created the Nova user by following the docs https://nova.laravel.com/docs/3.0/installation.html#installing-nova . Now I'm trying to login. Expected behavior When I send the login form,…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
3
votes
1 answer

Laravel Nova override vue component resulting [Vue warn]: Error compiling template

I'd like to implement a user guide using this https://github.com/shipshapecode/vue-shepherd on my nova. I changed a file webpack.mix.js.dist to webpack.mix.js (inside nova directory). Then I did : npm install npm run watch and made some changes in…
3
votes
2 answers

how to require attaching related resources upon creation of resources - Laravel Nova

I have a model called Tree that is supposed to be associated to 1..n Things. Things can be associated to 0..n things. In other words this is a many-to-many relationship, and a Thing must be chosen when a Tree is being created. My thing_tree…
David J.
  • 1,753
  • 13
  • 47
  • 96
3
votes
2 answers

laravel nova download file from path

with an action I need to be able to download a file. How can I do? with this code return Action::download('https://example.com/invoice.pdf', 'Invoice.pdf'); a url must be passed, I would like to pass the path (ex. storage/folder/filename.xx) Thank…
Sandro
  • 41
  • 2
  • 4