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 許可證授權的開源軟體。