Package Data | |
---|---|
Maintainer Username: | bestmomo |
Maintainer Contact: | grandheretique@free.fr (Bestmomo) |
Package Create Date: | 2016-09-13 |
Package Last Update: | 2016-09-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:07:25 |
Package Statistics | |
---|---|
Total Downloads: | 4,628 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 16 |
Total Watchers: | 4 |
Total Forks: | 14 |
Total Open Issues: | 1 |
This repository is the Laravel 5.3 version of this one.
Type :
composer require bestmomo/laravel5-3-installer
Add the service provider to config/app.php :
Bestmomo\Installer\InstallerServiceProvider::class,
The last required step is to publish views, translations and configuration in your application with :
php artisan vendor:publish --tag=laravel-installer
View are in resources/views/vendor/installer
, you can customize them as you want.
Translations are in resources/lang/*
in installer.php
file. You can customize them as you want and add other languages (default are only en
and fr
).
Configuration is in config/installer.php
:
null
).
For example you have a blog
directory with folders, subfolders and files at the root, set this value : 'publish-path' => base_path('blog'),
Take care that any file with same name will be changed for the new one.
true
if you want administrator creation with installation. Set also the fields
if default values dont suit. But take care that these fields must fit the create
method of AuthController (or your form request) because package uses this method to create the administrator. If you use form request for validation set it in validator configuration. If you use a custom creator method set it in creator configuration.To add other informations to administrator as roles you can create this method in RegisterController :
protected function userAddValues(User $user)
{
// Add elements to administrator record there
}
The user model is provided as method parameter so you can easily set a query.