- [Laravel 5.5+]
-
Add
CODESHAPER_ITEM_ID
to your.env
file -
Add in
composer.json
"require": {
"rachidlaasri/laravel-installer": "dev-master",
},
- Add vcs url for this package to your
composer.json
file:
"repositories": {
"rachidlaasri/laravel-installer": {
"type": "vcs",
"url": "[email protected]:Codeshaper-bd/laravel-installer.git"
}
},
- Run
composer update rachidlaasri/laravel-installer
to install the package. - Delete
config\installer.php
folder if exists. - Delete
public\installer
folder if exists. - Delete
resources\views\vendor\installer
folder if exists. - Delete
resources\lang
folder if exists. - Run
php artisan vendor:publish --provider="RachidLaasri\LaravelInstaller\Providers\LaravelInstallerServiceProvider"
to publish the assets. - Wrap all your routes in
['is_verified', 'need_to_install']
middleware. For example:
Route::group(['middleware' => ['is_verified', 'need_to_install']], function () {
// `/` route needs for redirecting to `install` route
Route::get('/', function () {
return view('welcome');
});
// Your routes here
[...]
});
- Run
php artisan optimize:clear
.
Laravel Web Installer is licensed under the MIT license. Enjoy!