basic laravel admin panel
v2.3.4
docker run --rm -v "$(pwd)":/opt -w /opt laravelsail/php83-composer:latest bash -c "composer create-project balajidharma/basic-laravel-admin-panel admin-app && cd admin-app && php artisan sail:install --with=mysql,redis,meilisearch,mailpit,selenium"
cd admin-app
./vendor/bin/sail pull mysql redis meilisearch mailpit selenium
./vendor/bin/sail build
sudo chown -R $USER:$USER .
./vendor/bin/sail up
./vendor/bin/sail npm install
./vendor/bin/sail npm run dev
./vendor/bin/sail artisan vendor:publish --tag=admin-core
./vendor/bin/sail artisan migrate --seed --seeder=AdminCoreSeeder
./vendor/bin/sail artisan storage:link
composer create-project balajidharma/basic-laravel-admin-panel admin-app
cd admin-app
.env
文件中的数据库详细信息php artisan vendor:publish --tag=admin-core
php artisan migrate --seed --seeder=AdminCoreSeeder
php artisan storage:link
npm install
npm run dev
php artisan serve
要更改管理员前缀,请更改config/admin.php
上的prefix
或在 env 上添加ADMIN_PREFIX
' prefix ' => env ( ' ADMIN_PREFIX ' , ' admin ' ),
composer update
后遇到错误?重置数据库并重新发布供应商资产以解决问题。
php artisan vendor:publish --tag=admin-core --force
php artisan migrate --seed --seeder=AdminCoreSeeder
Laravel 框架是根据 MIT 许可证授权的开源软件。