Laravel backend with AdminLTE 3 (Laravel ^7.0)
git clone https://github.com/toyza55k/laravel-backend.git .
composer install
npm install
(do not run in docker container)- edit database in .env file
APP_URL=YOUR_APP_URL . DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=
php artisan key:generate
-
php artisan migrate:fresh --seed or php artisan migrate php artisan db:seed
php artisan storage:link
url: YOUR_APP_URL/backend
Role | Username | Password |
---|---|---|
super admin | superadmin@admin.com | superadmin_backend |
admin | admin@admin.com | admin_backend |
general user | general-user@admin.com | general_user_backend |
- database/seeds/updates/UserRolePermissionSeeder.php
private function userPermissions() { return [ 'add example', 'edit example' ]; }
-
all permission auto assigned to 'admin' role.
php artisan db:seed --class=UserRolePermissionSeeder
for removing activity log and force delete rows in trash.
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
in .env file
FILESYSTEM_DRIVER=public_share_hosted
MEDIA_DISK=public_share_hosted
- spatie/laravel-activitylog
- maatwebsite/excel
- spatie/laravel-medialibrary
- spatie/laravel-permission
- spatie/laravel-view-models
- tightenco/quicksand
- yajra/laravel-datatables-oracle
- admin-lte
- inputmask
- jquery-validation
- ladda
- toastr