Package Data | |
---|---|
Maintainer Username: | bestmomo |
Maintainer Contact: | grandheretique@free.fr (Bestmomo) |
Package Create Date: | 2016-02-09 |
Package Last Update: | 2016-09-13 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-25 15:05:47 |
Package Statistics | |
---|---|
Total Downloads: | 3,084 |
Monthly Downloads: | 44 |
Daily Downloads: | 0 |
Total Stars: | 16 |
Total Watchers: | 7 |
Total Forks: | 5 |
Total Open Issues: | 0 |
For Laravel 5.3 look at this repository.
There is already a helper package for Laravel application installation. It's great but is not what I need because final people are not developpers and they must have informations that they can understand. On the other hand I think it's usefull to manage the possibility to register an administrator in the installation phase.
So I have developed this alternative package with final user in mind.
There is a (french) presentation there.
Add Installer to your composer.json file to require it :
require : {
...
"bestmomo/laravel-installer": "0.1.*"
}
Update Composer :
composer update
The next required step is to 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
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 AuthController :
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.