Introducing Laravel Nova

Published on by

Introducing Laravel Nova image

We’re thrilled to announce Laravel Nova, a “beautifully designed administration panel for Laravel” created by the Laravel team.

The level of customization available in Nova is mind-blowing, and it’s quite intelligent out-of-the-box once you configure Nova resources for your application.

A week before writing this, I found myself needing an interface and backend logic to manage eloquent models. With Nova, since it’s a composer package, you can install it in an existing Laravel 5.6 project that you’ve already built. That’s amazing if you think about it, it means that you don’t need to start over in order to integrate resource management into your app.

The frontend of Nova is a beautiful single page application powered by Vue.js, Vue Router, and Tailwind. Not only does Nova look great, it’s highly customizable.

To give you a quick overview, at a high-level Nova offers:

  • Resource Management
  • Search
  • Actions
  • Filters
  • Lenses
  • Metrics
  • Authorization

Resource Management

At the heart of Nova is resource management: the ability to create, read, update, and delete resources. Not only does Nova cover basic resource management, it also covers things like updating data on things like polymorphic relationships.

Each eloquent model in your project will have a corresponding Nova resource which defines fields, actions, filters, lenses, and cards. Nova does not store any configuration in the database, it is configured using simple PHP classes.

Nova has basic field types as well as custom types like Markdown, Trix, Code, and Place.

Search

Nova includes search functionality using SQL queries by default, and also seamlessly integrates with Laravel Scout if your application leverages scout.

Another area where the search is really cool is when you are creating a resource, that belongs to another model, Nova provides a search input to quickly find the related model.

Actions, Filters, and Lenses

Actions are simple PHP classes performing a task on resources. For example, if you wanted the ability to deactivate a user, you could define an action and trigger it from the UI on one user or a batch of users. If a model is marked with an Actionable trait, Nova provides an audit trail of the actions performed against that model and tracks who triggered the action.

Filters allow you to scope resources for index queries on things like “active users” or “suspended accounts.” Similar to actions, filters are defined as simple PHP classes that enable you to scope your queries with the query builder. The filters are available from the index view of a given resource as well as when displayed as a relationship.

Finally, lenses allow you to build different views for a resource with full control over the underlying query and fields returned. When lenses are defined and attached to a resource, they can be used on a resource’s index page.

Metrics

Nova ships with three standard metrics: value, trend, and partition. The built-in metric functionality makes it really easy to generate metrics. For example, you could track the number of new users created in your application for the current quarter compared to last quarter.

Once a metric is defined on a resource, it’s available from the index of the resource view. You can also create trends very easily leveraging the underlying Nova trends logic, and you can display them in various increments such as minute, hour, week, or even month.

Authorization

Nova integrates with Laravel policies, and you have granular control over how is allowed to manage resources. When an Eloquent model has a policy, Nova uses it to authorize resource actions. You also have full control over which users can attach resources together via relationships.

Learn More

We’ve only touched on high-level features and would encourage you to watch Talor’s presentation on the intricate details of using Nova to craft your next administration experience. For the level of flexibility it provides, the cost of Nova is a no-brainer.

Check out Nova at nova.laravel.com. Congratulations to Taylor Otwell (and everyone involved) for such an amazing product!

Paul Redmond photo

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Oh Dear

Oh Dear is the best all-in-one monitoring tool for all your Laravel apps.

Visit Oh Dear
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $2500/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
LoadForge logo

LoadForge

Easy, affordable load testing and stress tests for websites, APIs and databases.

LoadForge
Paragraph logo

Paragraph

Manage your Laravel app as if it was a CMS – edit any text on any page or in any email without touching Blade or language files.

Paragraph
Lucky Media logo

Lucky Media

Bespoke software solutions built for your business. Partner with Lucky Media, your favorite Laravel Development Agency!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Oh Dear logo

Oh Dear

Oh Dear is the best all-in-one monitoring tool for all your Laravel apps.

Oh Dear
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell

The latest

View all →
FrankenPHP v1.0 is Here image

FrankenPHP v1.0 is Here

Read article
Self-healing URLs in Laravel image

Self-healing URLs in Laravel

Read article
Laravel 10.35 Released image

Laravel 10.35 Released

Read article
Solve n+1 queries in PHP with Scout APM image

Solve n+1 queries in PHP with Scout APM

Read article
Show Outdated Composer Dependencies in Laravel Pulse image

Show Outdated Composer Dependencies in Laravel Pulse

Read article
Announcing Laravel Pulse - A New Performance Monitoring Tool for Laravel Apps image

Announcing Laravel Pulse - A New Performance Monitoring Tool for Laravel Apps

Read article