anlutro / l4-core
L4核心功能。
Requires
- php: >=5.4.0
- anlutro/l4-controller: 0.3.*
- anlutro/l4-repository: 0.7.*
- anlutro/l4-testing: 0.2.*
- laravel/framework: ~4.2
Requires (Dev)
- anlutro/menu: ~0.2
- laravel/laravel: ~4.2
- mockery/mockery: ~0.9
Suggests
- anlutro/menu: Menu builder.
- dev-master
- 4.1.x-dev
- 0.18.8
- 0.18.7
- 0.18.6
- 0.18.5
- 0.18.4
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.30
- 0.16.29
- 0.16.28
- 0.16.27
- 0.16.26
- 0.16.25
- 0.16.24
- 0.16.23
- 0.16.22
- 0.16.21
- 0.16.20
- 0.16.19
- 0.16.18
- 0.16.17
- 0.16.16
- 0.16.15
- 0.16.14
- 0.16.13
- 0.16.12
- 0.16.11
- 0.16.10
- 0.16.9
- 0.16.8
- 0.16.7
- 0.16.6
- 0.16.5
- 0.16.4
- 0.16.3
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.1
- 0.15.0
- 0.14.1
- 0.14.0
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.6
- 0.12.5
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.x-dev
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- dev-feature-return_joinclause
- dev-develop
This package is not auto-updated.
Last update: 2020-01-24 15:11:20 UTC
README
这是我的个人Laravel 4开发模板。它包括用户管理和认证控制器、视图、语言文件等。
由于这个仓库主要是为个人使用,我不建议你在项目中安装它,因为我不会费心去记录所有内容。相反,从中获得灵感,从阅读源代码中学习技巧。
还可以查看以下仓库,其中包含此包使用的类。这些适用于包含在你的项目中,并且有更详细的文档。
- https://github.com/anlutro/laravel-4-smart-errors
- https://github.com/anlutro/laravel-controller
- https://github.com/anlutro/laravel-repository
- https://github.com/anlutro/laravel-testing
- https://github.com/anlutro/laravel-validation
- https://github.com/anlutro/php-menu
先决条件
- 安装必要的JavaScript并包含Bootstrap 3样式表
- 可选:安装anlutro/php-menu包并注册其服务提供者
- 可选:安装anlutro/l4-smart-errors包并注册其服务提供者
安装
composer require anlutro/l4-core
- 从github或packagist选择最新的次版本标签。例如,0.16.*
将anlutro\Core\CoreServiceProvider
添加到app/config/app.php
中的服务提供者列表。
运行artisan core:publish config
来发布配置文件。如果你想同时发布“迁移”、“语言”和“视图”,也可以这样做。删除你不希望覆盖的已发布文件。
从app/start/global.php中删除除设置日志记录器的那行之外的所有内容。
在app/config/auth.php中,将驱动设置为“eloquent-exceptions”。
在app/start/global.php或服务提供者的boot方法中,你需要添加一些代码。
// either one of these, depending on if you want a sidebar or not View::alias('c::layout.main-nosidebar', 'c::layout.main'); View::alias('c::layout.main-sidebar', 'c::layout.main'); // register CSS and JS files to be included View::composer('c::layout.main-generic', function($view) { $view->styles->add(URL::asset('css/app.min.css')); $view->headScripts->add(URL::asset('js/modernizr.min.js')); $view->bodyScripts->add(URL::asset('js/jquery.min.js')); $view->bodyScripts->add(URL::asset('js/bootstrap.min.js')); $view->bodyScripts->add(URL::asset('js/app.min.js')); });
密码重置
如果你想使用新的改进的密码重置/提醒功能,从提供者数组中删除默认的ReminderServiceProvider,并替换为anlutro\Core\Auth\Reminders\ReminderServiceProvider
。
用户注册和激活
如果你想访问激活功能,还需要添加anlutro\Core\Auth\Activation\ActivationServiceProvider
。
改进的表单构建器
将默认的Laravel HtmlServiceProvider替换为提供者数组中的anlutro\Core\Html\ServiceProvider
。
联系
如果你有任何问题,请在GitHub上创建一个问题。
许可
此仓库的内容在MIT许可下发布。