PHP code example of ascsoftw / livewire-offline

1. Go to this page and download the library: Download ascsoftw/livewire-offline 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/ */

    

ascsoftw / livewire-offline example snippets


return [
    'offline_text' => 'You are currenly Offline!',
    'use_tailwind' => true,
    //Specify Inline Styles if use_tailwind is set to false
    'background_color' => '#9ACD32', //if you specify hex code, prefix with #
    'text_color' => '#FF0000',
    //Specify TailwindCss Classes if use_tailwind is set to true
    'text_class' => 'text-red-600',
    'background_class' => 'bg-yellow-300',
];
bash
php artisan vendor:publish --tag=config
bash
php artisan vendor:publish --tag=views