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

Staff writer at Laravel News. Full stack web developer and author.

Filed in:
Cube

Laravel Newsletter

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

image
Laravel Forge

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

Visit Laravel Forge
Laravel Forge logo

Laravel Forge

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

Laravel Forge
Tinkerwell logo

Tinkerwell

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

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
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
Lucky Media logo

Lucky Media

Bespoke software solutions built for your business. We ♥ Laravel

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
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
Larafast: Laravel SaaS Starter Kit logo

Larafast: Laravel SaaS Starter Kit

Larafast is a Laravel SaaS Starter Kit with ready-to-go features for Payments, Auth, Admin, Blog, SEO, and beautiful themes. Available with Vue and Livewire stacks.

Larafast: Laravel SaaS Starter Kit
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector

The latest

View all →
Real Time Command Line Monitoring With Laravel Top image

Real Time Command Line Monitoring With Laravel Top

Read article
A New Validation Rule and the Ability to Manually Fail a Command in Laravel 11.8 image

A New Validation Rule and the Ability to Manually Fail a Command in Laravel 11.8

Read article
New Proposed Array Find Functions in PHP 8.4 image

New Proposed Array Find Functions in PHP 8.4

Read article
Laracon AU 2024 tickets are now on sale image

Laracon AU 2024 tickets are now on sale

Read article
Dash UI is a Laravel Blade Component Library Inspired by Shopify Polaris image

Dash UI is a Laravel Blade Component Library Inspired by Shopify Polaris

Read article
Is class instantiation without extra parenthesis coming to PHP 8.4? image

Is class instantiation without extra parenthesis coming to PHP 8.4?

Read article