The SmartLearnPro Web Installer is a powerful Laravel package that simplifies the process of installing your application, much like popular content management systems such as WordPress. This installer is designed for users who may not have experience with Composer, SSH, or other technical tools. It offers an intuitive setup wizard with the following key features:
-
Server Requirement Checks: It verifies whether your server meets the necessary requirements to run your application smoothly.
-
Folder Permission Checks: It ensures that the required folders have the correct permissions for your application to function correctly.
-
Effortless Database Configuration: You can set up your database configuration with ease, either by editing the
.env
file or through a user-friendly form wizard. -
Database Migration: It automatically migrates your database schema, so you don't have to worry about setting it up manually.
-
Database Seeding: Seed your database tables quickly to populate them with sample data for testing.
Before you proceed, please ensure that your server environment meets the following requirements:
- Laravel 8.0+: Your Laravel application should be version 8.0 or higher.
Follow these steps to install the SmartLearnPro Web Installer:
-
Open your terminal and navigate to your project's root folder.
-
Run the following Composer command to add the package to your project:
composer require smartlearnpro/smartlearnpro-installer
-
Register the package in the
config/app.php
file under the 'providers' array:'providers' => [ SmartLearnPro\SlpInstaller\Providers\SlpInstallerServiceProvider::class, ];
-
Publish the package's assets, views, configuration files, and language files by running the following command from your project's root folder:
php artisan vendor:publish --provider="SmartLearnPro\SlpInstaller\Providers\SlpInstallerServiceProvider"
To customize the behavior of the installer, you can modify the configuration files located in the /config/smartlearnproinstaller.php
directory.
The installer provides a single route that you need to access to begin the installation process:
/install
Follow these steps to install your application using the SmartLearnPro Web Installer:
-
Access the
/install
route in your web browser. -
Follow the instructions provided in the setup wizard. It will guide you through checking server requirements, verifying folder permissions, and configuring your database.
-
Once the installation process is complete, an empty file named
installed
will be placed in the/storage
directory. -
If the
installed
file is present, the/install
route will redirect to your application's homepage, indicating that the installation is successful.
To style the installer to match your application's branding, use the following folder:
public/smartlearnprofiles
: This folder contains all the asset files responsible for styling your installer. You can override the default stylesheetstyle.css
and add your own custom styles.
The installer's appearance and content are fully customizable. You can make adjustments by editing the HTML code in this folder:
resources/views/smartlearnpro/installer
: This folder contains the HTML code for your installer. Customize it to align with your specific requirements.
Feel free to further customize your installer or expand this README with any additional information or sections you consider important.