Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Installererag Laravel Package

erag/installererag

View on GitHub
Deep Wiki
Context7

Laravel Installer: Easy & User-Friendly

  • Minimum PHP version required
  • PHP execution
  • Default Laravel folder permissions
  • .env file setup
  • Custom account form

Additionally, InstallerErag automates database migrations and seeding processes.

Laravel-InstallerErag

Getting Started

Install the package via Composer:

composer require erag/installererag

Step 1: Register the Service Provider

Laravel 11.x

Ensure the service provider is registered in /bootstrap/providers.php:

return [
    // ...
    InstallerErag\InstallerServiceProvider::class
];

Laravel 10.x

Add the service provider to config/app.php:

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

Step 2: Publish Vendor Files

Run the following command to publish the necessary assets:

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

Step 3: Start Installation

Navigate to your installation URL:

https://yourdomain.com/install-app

Step 4: Set Folder Permissions

Ensure the appropriate file or directory permissions with:

sudo chmod -R 775 directory_name

Customizing Requirements and Permissions

To customize PHP requirements or folder permissions, edit yourProject/config/install.php:

'requirements' => [
    // Add or remove PHP extensions as needed
],
'permissions' => [
    // Add or remove folder permissions as needed
]

Adding Dynamic .env Variables

To add new .env variables dynamically, modify yourProject/config/install.php like so:

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

Inserting Dynamic Fields to the Account Form

To add extra fields to the account form:

  1. Navigate to resources/views/vendor/account.blade.php.
  2. Add the following code for a new field (e.g., phone number):
<div class="col-md-12 mb-3">
    <x-install-input label="Phone Number" required="true" name="phone_number" type="text"
        value="{{ old('phone_number') }}" />
    <x-install-error for="phone_number" />
</div>
  1. Update the input tag in yourproject/config/install.php:
'account' => [
    'name' => 'required|string|max:255',
    'email' => 'required|email|unique:users|max:255',
    'password' => 'required|string|min:6',
    'phone_number' => 'required',
]
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle