2025-04-23 20:58:39 +08:00
|
|
|
laravel new shop_12_wireui
|
|
|
|
|
|
|
|
|
|
|
|
┌ Would you like to install a starter kit? ────────────────────┐
|
|
|
|
│ Laravel Breeze │
|
|
|
|
└──────────────────────────────────────────────────────────────┘
|
|
|
|
|
|
|
|
┌ Which Breeze stack would you like to install? ───────────────┐
|
|
|
|
│ Livewire (Volt Class API) with Alpine │
|
|
|
|
└──────────────────────────────────────────────────────────────┘
|
|
|
|
|
|
|
|
┌ Would you like dark mode support? ───────────────────────────┐
|
|
|
|
│ No │
|
|
|
|
└──────────────────────────────────────────────────────────────┘
|
|
|
|
|
|
|
|
┌ Which testing framework do you prefer? ──────────────────────┐
|
|
|
|
│ PHPUnit │
|
|
|
|
└──────────────────────────────────────────────────────────────┘
|
|
|
|
|
|
|
|
┌ Would you like to initialize a Git repository? ──────────────┐
|
|
|
|
│ ● Yes / ○ No │
|
|
|
|
└──────────────────────────────────────────────────────────────┘
|
|
|
|
|
|
|
|
|
|
|
|
composer require spatie/laravel-permission
|
|
|
|
|
|
|
|
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
php artisan make:seeder PermissionTableSeeder
|
|
|
|
php artisan make:seeder CreateAdminUserSeeder
|
|
|
|
|
|
|
|
無 DB 新建
|
|
|
|
php artisan migrate --seed
|
|
|
|
有 DB 重制
|
|
|
|
php artisan migrate:fresh --seed
|
|
|
|
|
|
|
|
valet park
|
|
|
|
valet link
|
|
|
|
valet paths
|
|
|
|
|
|
|
|
php artisan db:seed --class=PermissionTableSeeder
|
|
|
|
php artisan db:seed --class=CreateAdminUserSeeder
|
|
|
|
|
|
|
|
//console.log();
|
|
|
|
php artisan route:list
|
|
|
|
php artisan config:clear
|
|
|
|
php artisan route:clear
|
|
|
|
php artisan cache:clear
|
|
|
|
php artisan route:list
|
|
|
|
|
|
|
|
npm install && npm run build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composer require wireui/wireui
|
|
|
|
|
|
|
|
php artisan vendor:publish --tag="wireui.config"
|
|
|
|
|
|
|
|
php artisan make:livewire Admin/Roles/Index
|
|
|
|
|
|
|
|
php artisan make:livewire Admin/Users
|
|
|
|
|
|
|
|
php artisan make:component Table
|
|
|
|
|
2025-05-13 10:59:22 +08:00
|
|
|
操作記錄
|
|
|
|
composer require spatie/laravel-activitylog
|
|
|
|
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
|
|
|
|
php artisan migrate
|
|
|
|
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-config"
|
|
|
|
php artisan make:model ActivityLog
|
|
|
|
|
|
|
|
Laravel Excel
|
|
|
|
composer require maatwebsite/excel
|
|
|
|
|
2025-04-23 20:58:39 +08:00
|
|
|
composer require power-components/livewire-powergrid
|
|
|
|
php artisan vendor:publish --tag=livewire-powergrid-config
|
|
|
|
|
|
|
|
建立分頁table
|
|
|
|
php artisan powergrid:create
|