vovantruong/package-course

1.0.2 2021-07-03 03:06 UTC

This package is auto-updated.

Last update: 2024-09-29 06:08:39 UTC


README

第1步:将服务提供者添加到 config/app.php

  1. Vovantruong\Course\CourseServiceProvider::class,
  2. Intervention\Image\ImageServiceProvider::class,

第2步:将类别名添加到 config/app.php

  1. 'Image' => Intervention\Image\Facades\Image::class,
  2. 'Input' => Illuminate\Support\Facades\Request::class,

第3步:安装发布

  1. php artisan vendor:publish --provider="Vovantruong\Course\CourseServiceProvider" --force

第4步:发布包的配置和资源

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

第5步:清除缓存

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

第6步:迁移和 Seeder

运行以下命令

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