Search by

nevela / laravel

MarkColeMukisa

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.

v0.4.3 2026-10-06 01:49 UTC

This package is auto-updated.

Last update: 2026-10-06 01:51:25 UTC


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.