Code review at scale is broken. Here’s how Augment Code is fixing it.

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
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi
Tinkerwell logo

Tinkerwell

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

Tinkerwell
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Laravel Cloud logo

Laravel Cloud

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

Laravel Cloud
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
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
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant 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

The latest

View all →
Detecting and Fixing Race Conditions in Laravel Applications image

Detecting and Fixing Race Conditions in Laravel Applications

Read article
LaraCopilot: Generate Laravel MVPs From a Single Prompt With AI image

LaraCopilot: Generate Laravel MVPs From a Single Prompt With AI

Read article
Model::withoutRelation() in Laravel 12.54.0 image

Model::withoutRelation() in Laravel 12.54.0

Read article
Tyro Checkpoint: Instant SQLite Snapshots for Laravel Local Development image

Tyro Checkpoint: Instant SQLite Snapshots for Laravel Local Development

Read article
The Laravel Community Mobile App Helps You Discover Events and Connect With Developers image

The Laravel Community Mobile App Helps You Discover Events and Connect With Developers

Read article
A PHP Package for Concurrent Website Crawling image

A PHP Package for Concurrent Website Crawling

Read article