Core L4 functionality.

Installs: 308

Dependents: 0

Stars: 27

Watchers: 2

Forks: 1

Language: PHP


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.


  • 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


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) {

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.


Open an issue on GitHub if you have any questions.


The contents of this repository is released under the MIT license.