genealabs / jumpstart
此包已被废弃,不再维护。没有建议的替代包。
提供缺失的视图和其他功能,以启动您的Laravel项目。
0.1.4
2015-08-16 16:13 UTC
Requires
- php: >=5.5.9
- illuminate/console: ^5.1
- illuminate/filesystem: ^5.1
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2016-03-11 10:10:16 UTC
README
注意:不建议与Laravel 5.2一起使用,因为现在已有
php artisan make:auth
命令,该命令实现了认证页面和相关功能。
功能
Laravel 5.1.x版本移除了许多帮助项目启动的视图,我们需要自己实现这些细节。
此包解决了启动Laravel项目所需的所有任务,以及每个新项目通常执行的其他任务——从而为您的开发提供jumpstart。:-)
缺失的Laravel 5.0.x视图
以下视图已添加
- /resources/views/app.blade.php
- /resources/views/home.blade.php
- /resources/views/welcome.blade.php
- /resources/views/auth/login.blade.php
- /resources/views/auth/password.blade.php
- /resources/views/auth/register.blade.php
- /resources/views/auth/reset.blade.php
jQuery 2.1.4
本地实现了jQuery,以便在没有互联网连接的情况下进行开发,同时也支持本地安装Bootstrap
- /public/js/jquery-2.1.4.min.js
- /public/js/jquery-2.1.4.min.map
Bootstrap 3.3.5
Bootstrap已本地实现,因为在没有互联网连接的情况下开发时CDN引用不工作
- /public/css/bootstrap-3.3.5.min.css
- /public/css/bootstrap-3.3.5.css.map
- /public/css/bootstrap-theme.min.css
- /public/css/bootstrap-theme.css.map
- /public/fonts/glyphicons-halflings-regular.eot
- /public/fonts/glyphicons-halflings-regular.svg
- /public/fonts/glyphicons-halflings-regular.ttf
- /public/fonts/glyphicons-halflings-regular.woff
- /public/fonts/glyphicons-halflings-regular.woff2
- /public/js/bootstrap-3.3.5.min.js
为users
表添加首/姓氏迁移
这是一个添加first_name
和last_name
字段到用户表的选项
为users
表添加SoftDeletes迁移
这是一个为用户表添加软删除功能的选项。
安装
将composer包添加到composer.json
"require-dev": { "genealabs/jumpstart": "~0.1.0" }
或者通过composer命令安装:composer require genealabs/jumpstart ~0.1.0 --dev
。
接下来,您需要将ServiceProvider添加到\config\app.php
// 'providers' => [ // ... GeneaLabs\Jumpstart\JumpstartServiceProvider::class, // ]
应用
运行此包将尊重您的自定义命名空间,并在应用更改之前进行备份。
- 运行
php artisan app:jumpstart
。 - 决定您是否希望它覆盖现有文件或创建备份。
- 决定您是否想运行迁移。