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

Laravel Nova display user-friendly resource name

Let's say that I have a resource called "Resource_test". When I'm displaying that resource in Nova, that resource name (or "label") displays the name as-is which obviously isn't very user-friendly. Is it possible to rename the "label" to "Resource…
Slimez
  • 557
  • 1
  • 7
  • 21
19
votes
9 answers

Laravel Nova - Reorder left navigation menu items

In default the ordering of left menu items is in alphabetical order. My client wants to order those menus manually. Any idea how to make it possible? Go to answer
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
18
votes
2 answers

How do you use confirm dialogues in a custom Laravel Nova tool?

Is it possible to use the built in Laravel Nova confirm dialogue in your own tool? All I would like to use is interact with it how Nova does itself. The docs are quite light on the JS topic, as the only built in UI you seem to be able to work with…
Thomas Nadin
  • 1,167
  • 10
  • 22
14
votes
1 answer

Date field must cast to 'date' in Eloquent model

Hi I'm using laravel nova for create an admin panel. And I'm trying to use Date Field. This is my migration, $table->date('day')->nullable(); This is my my nova resource, public function fields(Request $request) { return [ …
vimuth
  • 5,064
  • 33
  • 79
  • 116
14
votes
3 answers

Testing Laravel Nova

Currently I'm trying to write feature tests for laravel nova that assert that the page is loaded correctly and data can be seen. However when I write the tests I can't find a way to assert that the correct text is shown due to way laravel nova's…
Jamie Woods
  • 517
  • 2
  • 10
  • 25
14
votes
8 answers

How to set a Laravel Nova field to display as readonly or protected?

Within Laravel Nova (v1.0.3), there are several methods that grant fine-grained control of the visibility of a resource field (canSee, showOnDetail, etc.). I can't find any methods that control if a field is editable. How can I display a field, but…
Matt
  • 795
  • 1
  • 6
  • 20
13
votes
1 answer

Laravel Nova - output forms on front end?

I am building a system that uses Laravel Nova for managing resources. There are a couple of instances where I want non-admin users to be able to create resources. The ideal solution would be to define the resource in Nova and embed Nova's own create…
rhoward
  • 183
  • 2
  • 15
13
votes
1 answer

Laravel Nova metrics filtering

I have a model called Property which has an 'active' flag. I want a metric at the top of my resource which shows a count of active Properties. My calculate method is exactly as in the doc but this shows all Properties rather than active…
Drewster
  • 499
  • 5
  • 13
11
votes
1 answer

Laravel Nova - Include additional css files

In Laravel Nova, how to include additional css files? I have tried following, but gives an error. class NovaServiceProvider extends NovaApplicationServiceProvider { /** * Bootstrap any application services. * * @return void */ …
Saumini Navaratnam
  • 8,439
  • 3
  • 42
  • 70
11
votes
1 answer

Laravel Nova template customization

I started to do some tests on the new administration panel Laravel Nova. I read the documentation and didn't find any mention of how we can do some template customization. Anybody can explain how the template engine works? It's there any way to…
Dayron Gallardo
  • 1,502
  • 2
  • 21
  • 37
10
votes
3 answers

Laravel Nova select field default value

How can i set a default value in Laravel Nova in a select field? Select::make('Car')->options([ 'mercedes' => 'Mercedes', 'audi' => 'Audi', 'bmw' => 'BMW', …
OnlyProblems
  • 235
  • 2
  • 13
10
votes
9 answers

Laravel Nova, route not found

I've installed Laravel Nova (using Laravel 5.6). App\Providers\NovaServiceProvider::class is registered in my config/app.php file. But when I go to https://localhost:1234/nova I get a 404 error. I have cleared my caches and run a composer…
GluePear
  • 7,244
  • 20
  • 67
  • 120
9
votes
3 answers

Laravel Nova - Load dropdown field based on relationship with of another dropdown

I have this resource called Distributor ID::make()->sortable(), Text::make('Name') ->creationRules('required'), BelongsTo::make('Region') ->creationRules('required') …
Tudor-Radu Barbu
  • 444
  • 1
  • 11
  • 28
9
votes
5 answers

Laravel Nova - How to display partial textarea text on index

Is there a way to display the first 25 chars of a Laravel\Nova\Fields\Textarea on the index of a Resource?
9
votes
5 answers

Laravel nova resource extending/overriding the create method

I am developing a web admin panel using Laravel Nova. I am having an issue since Nova is quite a new technology. What I would like to do now is I would like to add a hidden field or extend or override the create method. This is my scenario. Let's…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1
2 3
58 59