nevela / laravel
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.
Requires
- php: ^8.2
- illuminate/console: ^11.0|^12.0|^13.0
- illuminate/database: ^11.17|^12.0|^13.0
- illuminate/http: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
- lbuchs/webauthn: ^2.2
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
- ext-exif: Turns phone photos the right way up before their metadata is removed.
- ext-gd: Optimises uploaded images: resizing, WebP and renditions. Without it images are stored as uploaded.
- laravel/sanctum: Required for the token sign-in endpoints and the default auth:sanctum middleware (php artisan install:api).
Provides
None
Conflicts
None
Replaces
None
README
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. |
nevela:upgrade |
Bring the app to the latest Nevela: the package, the generated code and the dashboard. nevela:update is its older name and still works. |
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.