PHP code example of iankov / control-panel-static

1. Go to this page and download the library: Download iankov/control-panel-static 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/ */

    

iankov / control-panel-static example snippets


    [
        'icon' => 'file-text',
        'title' => 'Static',
        'link' => icp_route('static')
    ]
    

Route::get('{route}', ['as' => 'any', 'uses' => '\Iankov\ControlPanelStatic\Controllers\StaticPageController@index'])->where('route', '[0-9a-zA-Z\-\_\.]+');
bash
    php artisan vendor:publish --tag=icp_static_migrations
    
bash
    php artisan migrate
    
routes/web.php