PHP code example of touhedul / cms

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

    

touhedul / cms example snippets


    'providers' => [
        '...',
        Properos\Cms\CmsServiceProvider::class,
        '...'
    ]

    composer dump
    php artisan vendor:publish 
    Select -> Properos\Cms\CmsServiceProvider  
    php artisan storage:link
    

'mysql' => [
    'driver' => 'mysql',
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', '3306'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'unix_socket' => env('DB_SOCKET', ''),
    'charset' => 'utf8',
    'collation' => 'utf8_general_ci',
    'prefix' => '',
    'strict' => true,
    'engine' => 'Innodb',
],

php artisan migrate
    create  blog_posts table
            blog_post_comments table
            pages table

use Illuminate\Support\Facades\View;
use Properos\Cms\Models\DocumentCategory;

public function boot()
{
    View::share('document_categories', DocumentCategory::all());
}