The Laravel Coming Soon package provides a simple and customizable way to set up a "Coming Soon" page for your Laravel application. This page allows you to inform your visitors that your website is under construction and provide them with essential information about the launch date.
To get started with the Laravel Coming Soon package, follow these steps:
You can install the package via Composer. Run the following command in your terminal:
composer require tauseedzaman/laravel-coming-soonPublish the package configuration file to customize settings according to your project requirements:
php artisan vendor:publish --tag=coming-soon-configThis command will generate a coming-soon.php configuration file in the config directory of your Laravel project.
Run the migration to create the necessary database table for managing the "Coming Soon" settings:
php artisan migrateNow, open the config/coming-soon.php configuration file and customize it according to your needs. You can set the title, description, launch date, and enable or disable the "Coming Soon" mode.
By default, the package will protect your entire site with a "Coming Soon" page. If you want to protect specific routes or actions, you can use middleware. Update your routes or controllers as needed.
Route::middleware(['coming-soon'])->group(function () {
// Define your protected routes here
});To enable the "Coming Soon" mode and display the "Coming Soon" page, set the COMING_SOON_ENABLED environment variable to true in your .env file:
COMING_SOON_ENABLED=true
You can customize the "Coming Soon" page views by publishing them to your project:
php artisan vendor:publish --tag=coming-soon-viewsThis command will copy the views to the resources/views/vendor/coming-soon directory, allowing you to modify them as needed.
Once you have configured and customized the "Coming Soon" package to your liking, you can launch your Laravel application. Your visitors will see the "Coming Soon" page until the launch date arrives.
This package is open-source software licensed under the MIT license.
If you encounter any issues or have questions about using this package, please feel free to open an issue on GitHub.
This package is created and maintained by tauseedzaman.
Thank you for using Laravel Coming Soon!