anlutro / l4-core
Core L4 functionality.
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
This is my personal development boilerplate for Laravel 4. It includes user management and authentication controllers, views, language files and more.
As this is a repository mostly for my personal use, I do not recommend you ever install this into your project as I will never bother to document everything. Instead, draw inspiration from it, pick up tricks here and there from reading source code.
Also check out the following repositories, which contains classes that this package uses. These are suited to be included in your own projects and are more thoroughly documented.
- 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
Prerequisites
- Bootstrap 3 stylesheet with the necessary Javascript installed and included
- Optional: The package anlutro/php-menu installed and its service provider registered
- Optional: The package anlutro/l4-smart-errors installed and its service provider registered
Installation
composer require anlutro/l4-core
- pick the latest minor release tag from github or packagist. For example, 0.16.*
Add anlutro\Core\CoreServiceProvider
to the list of providers in app/config/app.php
.
Run artisan core:publish config
to publish config files. You can do the same with "migration", "lang" and "view" if you want. Delete the published files you don't want to override.
Remove everything from app/start/global.php except the line that sets up the logger.
In app/config/auth.php, set the driver to "eloquent-exceptions".
In app/start/global.php or a serviceprovider's boot method, you need to add some code.
// 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')); });
Password reset
If you want the new and improved password reset/reminder functionality, remove the default ReminderServiceProvider from the providers array and replace it with anlutro\Core\Auth\Reminders\ReminderServiceProvider
.
User registration and activation
If you want access to activation, add anlutro\Core\Auth\Activation\ActivationServiceProvider
as well.
Improved form builder
Replace the default Laravel HtmlServiceProvider with anlutro\Core\Html\ServiceProvider
in the providers array.
Contact
Open an issue on GitHub if you have any questions.
License
The contents of this repository is released under the MIT license.