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

Laravel Nova - How to determine the view (index, detail, form) you are in for a resource's computed field?

I would like to return a different result for a computed field when viewing the index view than when viewing the detail view of a resource. Basically something like viewIs() below: Text::make('Preview', function () { if($this->viewIs('index'){ …
6
votes
0 answers

How to override the delete confirmation modal in Laravel Nova

When deleting a Laravel Nova resource, the message "Are you sure you want to delete the selected resources" is displayed in a confirmation modal. How can I override this for a specific resource?
6
votes
1 answer

Laravel nova - Attach multiple models from edit/create form with HasMany relationship

I have a Nova Resource named "Partner" with fields menthod: public function fields(Request $request) { return [ Text::make('Name*', 'name')->rules('required')->sortable()->onlyOnForms(), Text::make('Name',…
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
6
votes
1 answer

Laravel Nova - Only load relationship with certain property in form dropdown

I have added a BelongsTo relationship field(relationship name: user) in my Nova app in resource named "Partner". So in the "create partner" form now I have a select element to choose a specific user. The relationship I have written includes a…
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
6
votes
3 answers

Laravel nova: How to override nova components

Let's say, I want to replace the nova/resources/js/components/Form/FieldWrapper.vue with a custom one (add some CSS classes or add additional HTML), how to do this, without making changes to the /nova directory (to be able to update nova)? The…
bernhardh
  • 3,137
  • 10
  • 42
  • 77
5
votes
0 answers

Redirect to url with message with Laravel Nova

I used Laravel Breeze in Laravel Nova to generate scaffold code for registering a user. When a user go to registering an account, he goes to the /register route. All the Breeze code is working. But when account is created, it redirect to…
Juliatzin
  • 18,455
  • 40
  • 166
  • 325
5
votes
1 answer

Fresh Laravel Nova returns 419 expired after form submit

I've added Laravel Nova to my Laravel app (v7.x). There is nothing special configured within my middlewares/service providers/etc. Whenever I submit a form from Nova, it results in a 419 Page expired error. The VerifyCsrfTokenMiddleware throws an…
Brotzka
  • 2,959
  • 4
  • 35
  • 56
5
votes
1 answer

Laravel Nova: Default Select Option From Select Field

I need to show a selected role of User in the Select Fields is there any method in which I can pass the value and it would be selected by default with the show Labels.
5
votes
1 answer

how to remove all checkboxes from resource list in laravel nova?

I have a laravel nova app. Like other nova app on resource list it shows a checkbox before every rows. and a option of select all. I want to remove those checkboxes from the resource list. Thanks.
5
votes
1 answer

How can one test Laravel nova actions?

I have made a laravel nova application with many resources. Most of these resources have a nova action attached to them. How can I unit test Laravel nova actions?
Mister Verleg
  • 4,053
  • 5
  • 43
  • 68
5
votes
2 answers

Laravel Nova extra 'images' field on forms without actual database column

Creating extra field 'images' resource forms usually throws 'column not found' type database level error. But I need that type of extra field on the resource forms for some business logic under the hood when the create/update form is submitted. I…
Hasnat Babur
  • 322
  • 5
  • 14
5
votes
2 answers

Add field text from relationship in laravel nova in ONE form

I'm new on Laravel Nova. I'm trying to build a User form. In this moment I have these models: User, UserDetail In User I have: email, password, username. In UserDetail I have: Name, Lastname, Gender, Number, etc. Now I would create One form for…
LorenzoBerti
  • 6,704
  • 8
  • 47
  • 89
5
votes
2 answers

Laravel Nova Metric card display custom label

I'm trying to implement a card with a trend-metric in Laravel Nova. Is there any way to update the label of the card? So in my case change "Participations Per Station" into something else.
Bergrebell
  • 4,263
  • 4
  • 40
  • 53
5
votes
0 answers

Create new resource directly in Laravel Nova with nested collection

I'm using Laravel Nova. I have a resource of a Company that should have an address. The address is stored in a different global Address resource. How can I directly add the Address info when creating a Company? That's why I have this Fields…
user1469734
  • 851
  • 14
  • 50
  • 81
5
votes
3 answers

Laravel Nova - How to remove delete button from file field in form

I have set up a form with image upload. By default laravel nova is showing a delete button and choose image button. According to my requirement, my client wants to keep the image as non-editable (hide delete and choose button) in the laravel nova…
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33