webup/helium-core

Laravel Admin made with Helium UI

dev-main 2024-04-15 23:22 UTC

README

Laravel Admin made with Helium UI

Latest Version on Packagist tests pint Total Downloads

Installation

You can install the package via composer:

composer require webup/helium-core

You should publish config and components

sail artisan vendor:publish

You can publish features as you go with:

php artisan helium:publish

Publishing a feature will copy paste every file associated with it. This includes:

  • config, controllers, models
  • migrations, routes
  • js, css
  • x-components, livewire components, blade views

⚠️ Configuration ⚠️

Make sure to configure this package to suit your preferences before starting to publish anything.

Features

Admin User management

This feature packs an AdminUser model along with its migration, a default {email: 'admin', password: 'password'} entry, and CRUD routes + pages.

php artisan helium:publish
> User

Don't forget to add the guard and provider to config/auth.php:

<?php

return [
    ...
    'guards' => [
        ...
        'admin' => [
            'driver' => 'session',
            'provider' => 'admin_users',
        ],
    ],

    'providers' => [
        ...
        'admin_users' => [
            'driver' => 'eloquent',
            'model' => App\Models\Admin\AdminUser::class,
        ],
    ],
];

Datatable

doc

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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