PHP code example of pw / core

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

    

pw / core example snippets


Pw\Core\CoreServiceProvider::class,
Pw\Core\ThemesServiceProvider::class,
Pw\Core\TranslatableServiceProvider::class,

'Module' => Pw\Core\Facades\Module::class,
'Theme' => Pw\Core\Facades\Theme::class,

protected $middlewareGroups = [
    'web' => [
        ...
        \Pw\Core\Middleware\Language::class,
    ],
];

'role' => 'App\Role',
'permission' => 'App\Permission',

'role' => 'App\Modules\Authorization\Models\Role',
'permission' => 'App\Modules\Authorization\Models\Permission',

php artisan vendor:publish

php artisan core:install