A Game Manage System Power By Laravel and PeadAdmin
git clone https://github.com/QCute/admin && cd admin
cd public
mkdir -p build
cd build
# clone ui
git clone https://github.com/pearadmin/pear-admin-layui
# or
git clone https://gitee.com/pear-admin/pear-admin-layui.git
# clone site
git clone https://github.com/pearadmin/pear-admin-site
# or
git clone https://gitee.com/pear-admin/pear-admin-site.git
# back to root
cd ../../
composer install -vvv
cp .env.example .env
php artisan key:generate
# http://admin.localhost
ADMIN_ROUTE_DOMAIN=admin
# http://localhost/admin
ADMIN_ROUTE_PREFIX=admin
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root
# table name prefix
DB_PREFIX=laravel_
DB_PREFIX_ADMIN=admin_
DB_PREFIX_API=api_
DB_PREFIX_WEB=web_
create database `laravel`;
php artisan migrate
php artisan db:seed --class=AdminSeeder
php artisan admin:create-user
# laravel
php artisan serve --host=0.0.0.0 --port=80
# run with octane
php artisan octane:start --host=0.0.0.0 --port=80
- Open http://admin.localhost/ in browser if you setup route domain.
- Open http://localhost/admin/ in browser if you setup route prefix.
- Open http://admin.localhost/admin/ in browser if you setup route domain and prefix.
php artisan sorter:order "table name"
# export seeder
php artisan seeder:export "config name"
# the sshpass script is used to manage the remote machine
php artisan sshpass:install
# install unit
sudo php artisan service:install
# start
sudo systemctl start laravel-admin.service
-
Laravel
- cache
- cache_locks
- failed_jobs
- job_batches
- jobs
- migrations
- password_reset_tokens
- sessions
- users
-
Admin
- user
- user_role
- role
- role_permission
- permission
- menu
- operation_log
- channel
- role_channel
- channel_server
- server
- role_server
- import_log
- config_file
- config_table
- user_manage
- user_chat_manage
- notice
- ssh_key
-
API
- server
- maintain_notice
- impeach
- client_error_log
- sensitive_word_data
- log
-
Web
- naivgation
- log