wikichua/simplecontrolpanel

A simple admin control panel for Laravel 6. Forked from kejodion/laravel-admin-panel


README

Forked from GitHub

Laravel Admin Panel ("LAP") is a drop-in admin panel package for Laravel which promotes rapid scaffolding & development.

Features:

  • More enhancement

Packages used:

Assets used:

Installation

Require via composer:

composer require wikichua/simplecontrolpanel @dev

For Laravel 7.x

composer require laravel/ui

Publish install files:

php artisan vendor:publish --tag=lap.general

General install including:

  • public
  • lang
  • layouts
  • auth
  • backend
  • users

Publish advanced files (1 by 1):

php artisan vendor:publish --tag=lap.config
php artisan vendor:publish --tag=lap.seo.config
php artisan vendor:publish --tag=lap.public
php artisan vendor:publish --tag=lap.lang
php artisan vendor:publish --tag=lap.layouts
php artisan vendor:publish --tag=lap.auth.view
php artisan vendor:publish --tag=lap.backend.view
php artisan vendor:publish --tag=lap.users.view

Publish all migrations files:

php artisan vendor:publish --tag=lap.migrations

Publish all stubs files:

php artisan vendor:publish --tag=lap.stubs

Publish all views files:

php artisan vendor:publish --tag=lap.all.view

Publish admin route files:

php artisan vendor:publish --tag=lap.admin.route

Add the AdminUser, DynamicFillable, and UserTimezone traits to your User model:

use Wikichua\Simplecontrolpanel\Traits\AdminUser;
use Wikichua\Simplecontrolpanel\Traits\DynamicFillable;
use Wikichua\Simplecontrolpanel\Traits\UserTimezone;

class User extends Authenticatable
{
    use Notifiable, AdminUser, DynamicFillable, UserTimezone;

Add this in your controller.php use \Wikichua\Simplecontrolpanel\Traits\Controller;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
    use \Wikichua\Simplecontrolpanel\Traits\Controller;

Run the migrations:

php artisan migrate

Alternative installation:

Install laravel:

composer create-project laravel/laravel --prefer-dist appName

Create directories in terminal:

cd appName; mkdir packages; cd packages; mkdir wikichua; cd wikichua; git clone https://github.com/wikichua/simplecontrolpanel.git

Add this in your composer.json under scripts section:

"require-dev": {
    "wikichua/simplecontrolpanel": "*"
},

"repositories": {
    "wikichua/simplecontrolpanel": {
        "type": "path",
        "url": "/path/to/your/appName/packages/wikichua/simplecontrolpanel"
    }
}

Alternative installation 2:

Need packager to ease your work

$ composer require jeroen-g/laravel-packager --dev

Import package from github

$ php artisan packager:git git@github.com:wikichua/simplecontrolpanel.git

Add this in your composer.json under scripts section:

"require-dev": {
    "wikichua/simplecontrolpanel": "*"
},

Run composer update

Logging In

Visit (APP_URL)/admin to access the admin panel.

The default admin login is:

Email Address: admin@example.com
Password: admin123