PHP code example of innosoft / cms

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

    

innosoft / cms example snippets


composer dump-autoload

php artisan vendor:publish

"autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/",
          "InnoSoft\\CMS\\": "vendor/innosoft/cms/src"
      },
      "files": [
  		  "helpers.php"
  	  ]
},

composer dump-autoload

Route::group(['middleware' => ['web']], function () {
    Route::group([ 'prefix' => 'admin' ], function(){
        Route::any('{paths?}', "\InnoSoft\CMS\CMSController@route")->where('paths', '([A-Za-z0-9\-\/]+)');
    });

    Route::get('/', function () {
        echo 'Frontend template not found - <a href="admin">Backend</a>';
    });
});