Laravel Admin Panel
Installation
Require via composer:
composer require wikichua/laravel-admin-panel
Publish install files:
php artisan vendor:publish --provider="Wikichua\Mylap\LapServiceProvider" --tag="install"
This will create the following files:
config/lap.php
public/lap/*.*
resources/views/vendor/lap/*.*
app/Http/Controllers/Admin/BackendController.php
Add the AdminUser
, DynamicFillable
, and UserTimezone
traits to your User
model:
use Wikichua\Mylap\Traits\AdminUser;
use Wikichua\Mylap\Traits\DynamicFillable;
use Wikichua\Mylap\Traits\UserTimezone;
class User extends Authenticatable
{
use Notifiable, AdminUser, DynamicFillable, UserTimezone;
Run the migrations:
php artisan migrate
Logging In
Visit (APP_URL)/admin
to access the admin panel.
The default admin login is:
Email Address: admin@example.com
Password: admin123