cansa / package-intership
管理帖子
3.0
2021-07-09 13:52 UTC
Requires
- laravelcollective/html: 6.2.1
README
- @webiste: http://foostart.com
- @package-name: package-filemanager
- @author: Kang
- @date: 27/12/2017
- @version: 2.0
功能
- CRUD
- 将类别添加到表单中
- 语言标准
- 在表格数据上添加过滤器
- 添加令牌以防止XSRF
步骤 1: 将服务提供者添加到 config/app.php
- Cansa\Intership\IntershipServiceProvider::class,
- Collective\Html\HtmlServiceProvider::class,
步骤 2: 将类别名添加到 config/app.php
- 'Input' => Illuminate\Support\Facades\Request::class,
- 'Form' => Collective\Html\FormFacade::class,
- 'Html' => Collective\Html\HtmlFacade::class,
步骤 3: 在 config/auth.php 中更改模型提供者类的 Auth 别名
- 'model' => Cansa\Intership\Models\User::class,
步骤 4: 在 app/Http/Kernel.php 中添加中间件
- \Illuminate\Session\Middleware\StartSession::class,
- \Illuminate\View\Middleware\ShareErrorsFromSession::class,
步骤 5: 删除数据库/migrations 中的用户和密码迁移文件
步骤 6: 添加会话
- php artisan session:table
步骤 7: 安装发布
- php artisan vendor:publish --provider="Cansa\Intership\IntershipServiceProvider" --force
步骤 8: 发布包的配置和资源
- php artisan vendor:publish --tag=lfm_config
- php artisan vendor:publish --tag=lfm_public
步骤 9: 清除缓存
- php artisan route:clear
- php artisan config:clear
- php artisan storage:link
步骤 10: 迁移和 Seeder
运行以下命令
- php artisan migrate
- php artisan db:seed