laravel maintained by nevela
Description
Nevela for Laravel: describe a resource once and generate its model, migration, validation, policy and REST API, plus the Next.js dashboard screens for it.
Author
Last update
2026/10/06 11:54
(dev-main)
License
Downloads
44
nevela/laravel
The Laravel side of Nevela: describe a resource once and get its model, migration, validation, policy and REST API, plus the Next.js dashboard screens for it.
php artisan nevela:resource Product --fields="name:string, sku:string!, price:money, kind:enum(stock|digital), notes:text?"
php artisan migrate
Start a new app
The quickest way is the create command, which sets up Laravel, this package and the dashboard together:
pnpm create nevela my-app
Add it to an existing Laravel app
php artisan install:api # Sanctum, if you don't have it yet
composer require nevela/laravel
Add Sanctum's trait to your user model:
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
}
Needs PHP 8.2 or newer and Laravel 11, 12 or 13.
Commands
| Command | What it does |
|---|---|
nevela:resource |
Describe a resource and generate everything for it. |
nevela:generate |
Regenerate after changing a descriptor. Your own code is kept. |
nevela:seed |
Fill a resource with plausible records, and print how long it took. |
nevela:user |
Create someone who can sign in. |
Full documentation: https://nevela-docs.vercel.app
Where this code lives
This repository is a read-only copy of packages/laravel from MarkColeMukisa/nevela, kept so Composer can install the package. Open issues and pull requests there.
License
MIT. Copyright (c) 2026 Mark Cole MUKISA.