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

how to define time Field in laravel nova admin panel

i have time column in my data base . i need to defined field for this column. this is my migration: $table->date('date'); $table->time('time_begin'); $table->time('time_Enable'); this is my resource: public function…
3
votes
1 answer

Laravel Nova Resource, combine fields in layout?

I'm using Laravel and Nova, I have a Collection resource which has multiple fields, now when you define the fields for example: Text::make('Meta 1 Label')->hideFromIndex(), Text::make('Meta 1 Value')->hideFromIndex(), Text::make('Meta 2…
Miguel Stevens
  • 8,631
  • 18
  • 66
  • 125
3
votes
2 answers

How can I create a dependent validation rule in Nova?

I have fields defined as the following for a resource in Nova: Select::make('Type') ->options([ 'video' => 'Video', 'download' => 'Download', ]) ->rules('required'), File::make('File', 'file_name') …
Rory
  • 2,175
  • 1
  • 27
  • 37
3
votes
3 answers

How to hook into the delete event for a resource in laravel nova?

I have one query, I want to delete the image from the server when particular resource get deleted from Nova. can anyone suggest me is there any way to override delete method for the resource. EDIT: How to hook into the delete event for a resource…
Jigar
  • 3,055
  • 1
  • 32
  • 51
3
votes
1 answer

How to hide the edit/delete/view buttons on Laravel Nova?

So I'm trying to hide buttons in Laravel Nova resource. But I dont know what i can add to the code. Those buttons:
3
votes
0 answers

Getting 404 on HasMany from 1 Resource, but not another Resource to the same record

I have an existing Laravel/Nova project and tables. I am introducing a new set of tables into the mix. Old Structure: Field -> FieldValue New Structure: ComplexField -> ComplexFieldValue Field -> FieldValue -> ComplexFieldValue If I try to use…
3
votes
1 answer

Laravel Nova - Hide update icon (edit attached) on related resource

Does anyone know how I get rid of the update icon on a related resource's details page? I'm talking about the icons on the right here; Events and Time Slots have a many to many relationship. They are related like so; App/TimeSlot.php public…
Jordan D
  • 718
  • 7
  • 21
3
votes
2 answers

Issue displaying Metrics Trend with Laravel Nova - Too few arguments

So I'm trying to add a new Metric Trend to a Resource but always receive the following error: Too few arguments to function Laravel\Nova\Resource::__construct(), 0 passed in /crm/nova/src/Metrics/Trend.php on line 116 and exactly 1 expected…
David
  • 47
  • 6
3
votes
2 answers

Laravel Nova How to create a select with options based on other Nova Resouce

Is it possible to create Select options from an other Nova resource? I tried to do this: Select::make('Contactperson') ->rules('required') ->options(// Here I want the values from the "Employees"-resource ) ->displayUsingLabels() …
ST80
  • 3,565
  • 16
  • 64
  • 124
3
votes
1 answer

Multiple column names for $title in Laravel Nova select

Is it possible to group several column names and use them as the label / title in a select BelongsTo, I don't want to use ID and don't have a 'name' field as such as the table in question is like this: Country State Cost So the dropdown should be…
user1983183
  • 88
  • 1
  • 6
3
votes
1 answer

Laravel nova, custom resource tool not appears in edit mode

I have a custom resource-tool working fine in the view panel of a resource, but it dont appears when i go o the edit mode. Is there something i should add to the component or to the Nova configuration to enable the component in the edit mode? Code…
Ricardo Albear
  • 496
  • 8
  • 26
3
votes
3 answers

How to Customize Redirect After Login

I use in my application cms nova. I want to configure redirection according to the user property. Didn't find anything in the documentation. Maybe I just didn't understand. Please help to understand. As I understand it, when Nova is used, it takes…
3
votes
2 answers

Displaying the value in a Laravel Nova Value metric

I need to show the sum of the price column of model Foo. Right now I can do it with this. public function calculate(Request $request) { return $this ->sum($request, Contribution::class, 'contribution_amount') …
Fawzan
  • 4,738
  • 8
  • 41
  • 85
3
votes
2 answers

Laravel Nova remove resources from navigation

Perhaps someone has already encountered a similar problem and can tell me. How to delete “resources” item in navigation. Not a separate resource - but in general, completely remove the entire list, including the title. Screenshot:…
Andrey Markov
  • 71
  • 2
  • 6
3
votes
1 answer

Check from_date before to_date and to_date after from_date, also both dates before today in laravel nova validation

return [ Date::make('From Date') ->sortable() ->rules('required', 'date', 'date_format:Y-m-d', 'before:'.date('Y-m-d').''), Date::make('To Date') ->sortable() …