PHP code example of tumainimosha / laravel-coming-soon

1. Go to this page and download the library: Download tumainimosha/laravel-coming-soon library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tumainimosha / laravel-coming-soon example snippets


// file: routes/web.php

Route::get('/', function () {
    return view('comingsoon::comingsoon');
});

// file: routes/web.php

Route::any('{query}', function () {
    return view('comingsoon::comingsoon');
})->where('query', '.*');
bash
php artisan vendor:publish --provider="snw\\ComingSoon\\ComingSoonServiceProvider" --tag="assets"
bash
php artisan vendor:publish --provider="snw\\ComingSoon\\ComingSoonServiceProvider" --tag="migrations"
bash
php artisan migrate