Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 3.54 KB

README.md

File metadata and controls

109 lines (73 loc) · 3.54 KB

The Laravel installer is very user-friendly and easy to install.

InstallerErag packages can be easily installed with any Laravel project. They are designed to be user-friendly and simple to use. With InstallerErag, you can easily configure all the necessary configurations dynamically, including the minimum required PHP version, PHP execution, default Laravel folder permissions, .env file setup, and custom account form. Additionally, the package includes an automated database migration and seed process.

screenshot

Getting Started

composer require erag/installererag

Step 1

It seems like you are trying to include a service provider in your Laravel application. If you want to add the InstallerErag\InstallerServiceProvider::class to your Laravel application, you typically need to follow these Steps:

Locate config/app.php: Open the config/app.php file in your Laravel project.

Find providers array: Inside the config/app.php file, find the providers array.

'providers' => [
    // ...
    InstallerErag\InstallerServiceProvider::class,
],

Step 2

 php artisan vendor:publish --tag=InstallerErag --force

Step 3 Now start the installation

 https://yourdomain.com/install-app

screenshot

Step 4 chmod permissions file_or_directory

 sudo chmod -R 775 directory_name

How to customize Requirements and Permissions?

Certainly! If you want just the content without additional explanations, here's the simplified content for your yourProject/config/install.php file.

"requirements" => Add or remove additional PHP extensions as needed
"permissions" => Add or remove additional folder permissions as needed

How to add new .env variable dynamic ?

If you want to create an additional .env file based on the configuration in the yourProject/config/install.php file, you can follow these Steps: We will be displaying of .env Within the same, you need to include the following.

The last line, which ends with ., followed by a new line character \n, will not persist. Ex:

'needed="34dsf24bcgf"' . "\n".
'apikey="123456"',

How can I insert dynamic extra fields to the Account form?

When you go to the path resources/views/vendor you will see account.blade.php By modifying it, you can add extra fields like this.

 <div class="col-md-12 mb-3">
    <x-install-input label="Phone Number" required="ture" name="phone_number" type="text"
        value="{{ old('phone_number') }}" />
    <x-install-error for="phone_number" />
 </div>

After adding, you need to go to yourproject/config/install.php where the input tag name will be, and add it to the account array inside install.php like this

 'account' =>    [
        'name' => 'required|string|max:255',
        'email' => 'required|email|unique:users|max:255',
        'password' => 'required|string|min:6',
        'phone_number' => 'required',
    ]

License

The MIT License (MIT). Please see License File for more information.

GitHub @eramitgupta  ·  Linkedin @eramitgupta ·  Donote @eramitgupta