courses / package-courses
This is package-courses(project HK4 laravel)
2.0.5
2021-07-04 14:10 UTC
Requires
- laravelcollective/html: 6.2.1
README
composer require courses/package-courses
Step 1: Add service providers to config/app.php
- Courses\Courses\CoursesServiceProvider::class,
- Collective\Html\HtmlServiceProvider::class,
Step 2: Add class aliases to config/app.php
- 'Input' => Illuminate\Support\Facades\Request::class,
- 'Form' => Collective\Html\FormFacade::class,
- 'Html' => Collective\Html\HtmlFacade::class,
Step 3: Change model providers class Auth aliases to config/auth.php
- 'model' => Courses\Courses\Models\User::class,
Step 4: Delete user and password migration file in database/migrations
Step 5: Install publish
- php artisan vendor:publish --provider="Courses\Courses\CoursesServiceProvider" --force
Step 6: Publish the package’s config and assets :
- php artisan vendor:publish --tag=lfm_config
- php artisan vendor:publish --tag=lfm_public
Step 7: Clear cache
- php artisan route:clear
- php artisan config:clear
- php artisan storage:link
Step 8: Migrate and Seeder
Run the following
- php artisan migrate
- php artisan db:seed