Code Monkey home page Code Monkey logo

installererag's Introduction

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/app/install

screenshot

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-input label="Phone Number" required="ture" name="phone_number" type="text"
        value="{{ old('phone_number') }}" />
    <x-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',
    ]

Screencasts (Video)

https://drive.google.com/file/d/1kqzdLvMZGUIJGCi214jB91jsDOM4UKl0/view

License

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

GitHub @eramitgupta  ·  Linkedin @eramitgupta ·  Donote @eramitgupta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.