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

How do I use Nova components in a custom tool or card?

I'm currently working on a Laravel Nova application in which I need to add a lot of custom tools and cards. I'd like to keep consistency across the whole application, so it makes sense to simply use the existing Laravel Nova components for certain…
develpr
  • 1,296
  • 4
  • 22
  • 42
8
votes
3 answers

Laravel Nova required image upload on every edit

I'm using laravel-nova and on one resource I'm using the Image field: use Laravel\Nova\Fields\Image; Image::make('Top Image', 'hero_image') ->help('Upload an image to display as hero') ->disk('local') ->maxWidth(400) …
ST80
  • 3,565
  • 16
  • 64
  • 124
8
votes
5 answers

Laravel nova - redirect from Dashboard

I would like to remove dashboard from my Laravel Nova app. I found it easy to remove it from sidebar-menu - simply comment /views/dashboard/navigation.blade.php code. However, I want to add a redirection logic (landing page depends on user role) so…
guyaloni
  • 4,972
  • 5
  • 52
  • 92
8
votes
2 answers

Laravel Nova card localization

I'm trying to add localization support for a card built for the Laravel Nova dashboard. I already created a folder in /resources/lang containing the JSON language files in a format like en.json. The files get published (copied) with the publish…
Sven
  • 1,450
  • 3
  • 33
  • 58
7
votes
0 answers

Access Laravel API from a Laravel Nova custom tool

I have created a new tool within Nova and I have to access my laravel api defined in /routes/api.php not the one in nova-components/component-name/routes/api.php My code within the Vue component looks like this: getCertificateTypes() { …
iosifv
  • 1,153
  • 1
  • 10
  • 26
7
votes
4 answers

laravel authorizeResource always denies access

I have created a resource controller for an API endpoint. I have also created a corresponding policy for the model. If I do a per method authorization check using $this->authorize('delete', $asset); then it works as expected. But if I add the…
JaChNo
  • 1,493
  • 9
  • 28
  • 56
7
votes
3 answers

Laravel 5.7 Nova - The Mix manifest does not exist (on server)

I set up laravel Nova locally last night, tested it, used it, everything works great on my local machine. Uploaded it to the server, and everything works great except when i head to /nova which rightfully redirects me to /nova/login but then…
Raymond Ativie
  • 1,747
  • 2
  • 26
  • 50
7
votes
2 answers

Display specific eloquent query in nova resource index view

I want to display the following eloquent in index view for nova resource Post::where('frontpage', true)->get() And perform Post model CRUD operations, How can I do that?
Ya Basha
  • 1,902
  • 6
  • 30
  • 54
7
votes
1 answer

How to reload a ResourceTable programmatically in Laravel Nova?

I have a custom resource-tool (ledger entry tool) that modifies values of a resource as well as insert additional rows into related resources. "Account" is the main resources. "AccountTransaction" and "AccountLog" both get written to when a ledger…
7
votes
2 answers

Laravel Nova Self-referential Relationship

In Laravel, if I want to create a self-referential relationship I can do the following: class Post extends Eloquent { public function parent() { return $this->belongsTo('Post', 'parent_id'); } public function children() …
Mister Verleg
  • 4,053
  • 5
  • 43
  • 68
7
votes
1 answer

Laravel nova - How to remove required validation from BelongsTo relationship?

I have a Nova resource named "Partner" with relationship to another Nove resource named "Rate". BelongsTo::make('Rate*', 'customrate', 'App\Nova\Rate')->onlyOnForms() Now when user try to create a parter, the select field to choose rate is…
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
7
votes
1 answer

Laravel Nova BelongsTo not working when relationship method name and foreign key prefix are different

Belongs to relationship not working in my Nova application when relationship method name and foreign key prefix are different. I have two tables, event & client_location with Models Event & ClientLocation Event Model: class Event extends Model { …
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
7
votes
2 answers

Nova Relatable Filtering - how to filter users whose company_id matches locations company_id

I have a many to many relationship between users and locations. I want to filter my "attach user" select list to only show users whose company_id matches the company_id of the location I am currently on. I have created a static function called…
C. Gill
  • 157
  • 3
  • 13
7
votes
4 answers

Laravel Nova: Convert Datetime to readable output

Is there an option in Laravel Nova to display an readable date-time output and/or limit the output? For example to : 29. October 2018 / 11. November 2018, 12:10 am Code: DateTime::make('Start') ->rules('required') …
Stan Barrows
  • 873
  • 1
  • 12
  • 27
7
votes
3 answers

How to customise height of card on Laravel Nova dashboard?

There is a ->width() option for cards. How can the height be defined?
ohho
  • 50,879
  • 75
  • 256
  • 383
1
2
3
58 59