codersgift/installer

This package work for laravel installer, for install any application

dev-master 2024-10-14 04:30 UTC

This package is auto-updated.

Last update: 2024-12-14 04:54:28 UTC


README

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Laravel Installer package

Step - 1:

env file add this code

APP_INSTALL=NO

Step -2:

Add provider file
Laravel 11:
bootstrap/providers.php

Or

Laravel < 11
config/app.php

Add this file

Codersgift\Installer\InstallerServiceProvider::class,

Add this file for middleware working

Route::group(['middleware' => 'installed'], function () {
		Route::get('/', function () {
				return view('welcome');
		});

		Route::get('/hello-world', function () {
				return "Hello world page, finally done";
		})->name('helloworld');
});

Step - 3: (This is Option ) - Use it if you are using this package in root folder

composer.json file

"autoload-dev": {
		"psr-4": {
		"Tests\\": "tests/",
		"Codersgift\\Installer\\": "package/Installer/src/"
		}
},

Step - 3: Publish the Assets

php artisan vendor:publish --tag=installer-assets
This will copy the assets to public/install/css.

Step - 4 : if you choose fresh data you have the available Setting model

Step for fresh data
The user create so user table

$table->foreignId('role_id')->default(2);
$table->boolean('status')->default(false);