PHP code example of cogroup / cms

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

    

cogroup / cms example snippets


php artisan migrate

php artisan db:seed --class=CogroupCmsSeeder

php artisan cogroupcms:assets
php artisan cogroupcms:config
php artisan cogroupcms:errorviews
php artisan cogroupcms:fonts
php artisan cogroupcms:migrations
php artisan cogroupcms:seeders
php artisan cogroupcms:translations

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => Cogroup\Cms\Models\User::class,
    ],

    // 'users' => [
    //     'driver' => 'database',
    //     'table' => 'users',
    // ],
],

$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravelRecent"

Route::group(['prefix' => 'settings', 'middleware' => ['admin:settings|view']], function() {
    Route::get('/', 'AdminController@welcome');
    Route::post('/', ['middleware' => ['admin:settings|create,update'], 'uses' => 'AdminController@manageAdmins']);
});

'middleware' => ['role:admin|create,update']

cms_roles_check($check, $moduleslug, $type);

cms_get_modules($modulename, $inmenu, $idrol);

cms_settings();

cms_format_date($date);

cms_format_time($time);

cms_format_datetime($datetime);

cms_get_file_attribute($id, $attribute);

cms_get_file_attribute();

'via' => ['mail', 'database'],

$request->session()->flash('status', '1');

$request->session()->flash('msgfrom', {position});

$request->session()->flash('msgfrom', {align});

$request->session()->flash('msgtime', {time});

$request->session()->flash('msg', {message});
shell
php artisan vendor:publish --provider="Cogroup\Cms\CmsServiceProvider"
bash
php artisan migrate