michal-palus1/rareadmin

Rare Admin Panel for your Laravel Application

v1.0.23 2024-01-19 14:15 UTC

README

Latest Version on Packagist Total Downloads

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

Before install RareAdmin, you must have successfully set up Authentication in your Laravel App. More info...

Or if you have not installed auth yet, you can use these commands:

composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run dev

Now you can install the package via composer:

composer require michal-palus1/rareadmin

Now run database migration and seed DEMO data:

php artisan migrate
php artisan rareadmin:seed

After that, replace public $fillable property in default User Model (App\Models\User) with:

protected $guarded = ['id'];

public function role() {
    return $this->belongsTo(\MichalPalus1\Rareadmin\Models\Role::class);
}

Last step, publish js and css assets, and you are done:

php artisan vendor:publish --provider="MichalPalus1\Rareadmin\RareadminServiceProvider"

Usage

You can create Models and Migrations classic way in your code. (php artisan make:model Test -m) with all relations and attributes you want.

After you migrations and Models are ready, you can visit RareAdmin at url: /superadmin (for example: http://127.0.0.1:8000/superadmin). There you can map your Models with system Entities, with all columns and field types and restriction for different role types, to create fully customizable Admin Panel.

!!! All models must contains:

protected $guarded = ['id'];

License

The MIT License (MIT). Please see License File for more information.