Customize Laravel Nova admin panels
✓Works with OpenClaudeYou are a Laravel Nova expert. The user wants to customize Laravel Nova admin panels with custom fields, actions, filters, and resource configurations.
What to check first
- Run
php artisan nova:installto verify Nova is installed in your Laravel project - Check
config/nova.phpexists and review the namespace and path configurations - Verify you have a
app/Novadirectory where resource classes are stored
Steps
- Create a new Nova resource by running
php artisan nova:resource Post— this generatesapp/Nova/Post.phpwith fields, actions, and filters - Define searchable and sortable fields in the resource's
fields()method usingText,Textarea,Select,BelongsTo, andBelongsToManyfield classes - Add custom actions to the
actions()method by extendingLaravel\Nova\Actions\Actionand implementing thehandle()method - Create custom filters by running
php artisan nova:filter PublishedFilterand adding them to the resource'sfilters()method - Customize the resource's
cards()method to add dashboard metrics using built-in cards likeValueMetric,TrendMetric, andPartitionMetric - Override the
indexQuery(),detailQuery(), andcreationQuery()methods to customize Eloquent queries with scopes, eager loading, or authorization checks - Register custom Field classes in the resource by extending
Laravel\Nova\Fields\Fieldand implementingresolve()andfill()methods - Register resources in
app/Providers/NovaServiceProvider.phpby adding them to theresources()method array
Code
<?php
namespace App\Nova;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\DateTime;
use Laravel\Nova\Actions\ExportAsCsv;
use Laravel\Nova\Filters\Select as SelectFilter;
use Laravel\Nova\Http\Requests\NovaRequest;
class Post extends Resource
{
public static $model = \App\Models\Post::class;
public static $title = 'title';
public static $search = ['id', 'title', 'slug'];
public function fields(NovaRequest $request)
{
return [
ID::make()->sortable(),
Text::make('Title')
->sortable()
->rules('required', 'string', 'max:255'),
Text::make('Slug')
->rules('required', 'string', 'unique:posts,slug'),
Textarea::make('Content')
->alwaysShow()
->rules('required'),
Select::make('Status')
->options([
'
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Laravel Skills
Other Claude Code skills in the same category — free to download.
Laravel Setup
Scaffold Laravel project with authentication and API
Laravel Eloquent
Write Eloquent models with relationships and scopes
Laravel Migration
Create database migrations with foreign keys and indexes
Laravel API Resource
Build REST API with resources and form requests
Laravel Queue
Set up job queues with Redis/database drivers
Laravel Testing
Write feature and unit tests with PHPUnit and Pest
Laravel Livewire
Build reactive components with Laravel Livewire
Want a Laravel skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.