courses/package-courses

This is package-courses(project HK4 laravel)

2.0.5 2021-07-04 14:10 UTC

This package is auto-updated.

Last update: 2025-07-04 23:06:18 UTC


README

composer require courses/package-courses

Step 1: Add service providers to config/app.php

  1. Courses\Courses\CoursesServiceProvider::class,
  2. Collective\Html\HtmlServiceProvider::class,

Step 2: Add class aliases to config/app.php

  1. 'Input' => Illuminate\Support\Facades\Request::class,
  2. 'Form' => Collective\Html\FormFacade::class,
  3. 'Html' => Collective\Html\HtmlFacade::class,

Step 3: Change model providers class Auth aliases to config/auth.php

  1. 'model' => Courses\Courses\Models\User::class,

Step 4: Delete user and password migration file in database/migrations

Step 5: Install publish

  1. php artisan vendor:publish --provider="Courses\Courses\CoursesServiceProvider" --force

Step 6: Publish the package’s config and assets :

  1. php artisan vendor:publish --tag=lfm_config
  2. php artisan vendor:publish --tag=lfm_public

Step 7: Clear cache

  1. php artisan route:clear
  2. php artisan config:clear
  3. php artisan storage:link

Step 8: Migrate and Seeder

Run the following

  1. php artisan migrate
  2. php artisan db:seed