cansa/package-intership

管理帖子

3.0 2021-07-09 13:52 UTC

This package is auto-updated.

Last update: 2024-09-10 12:59:49 UTC


README

  • @webiste: http://foostart.com
  • @package-name: package-filemanager
  • @author: Kang
  • @date: 27/12/2017
  • @version: 2.0

功能

  1. CRUD
  2. 将类别添加到表单中
  3. 语言标准
  4. 在表格数据上添加过滤器
  5. 添加令牌以防止XSRF

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

  1. Cansa\Intership\IntershipServiceProvider::class,
  2. Collective\Html\HtmlServiceProvider::class,

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

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

步骤 3: 在 config/auth.php 中更改模型提供者类的 Auth 别名

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

步骤 4: 在 app/Http/Kernel.php 中添加中间件

  1. \Illuminate\Session\Middleware\StartSession::class,
  2. \Illuminate\View\Middleware\ShareErrorsFromSession::class,

步骤 5: 删除数据库/migrations 中的用户和密码迁移文件

步骤 6: 添加会话

  1. php artisan session:table

步骤 7: 安装发布

  1. php artisan vendor:publish --provider="Cansa\Intership\IntershipServiceProvider" --force

步骤 8: 发布包的配置和资源

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

步骤 9: 清除缓存

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

步骤 10: 迁移和 Seeder

运行以下命令

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