PHP code example of nksoft / laravel-master

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

    

nksoft / laravel-master example snippets



'providers' => [
    ...
    Nksoft\Master\NkSoftMasterServiceProvider::class,
    Intervention\Image\ImageServiceProvider::class,
]
'aliases' => [
    ...
    'Image' => Intervention\Image\Facades\Image::class,
]


protected $routeMiddleware = [
    ...
    'nksoft' => \Nksoft\Master\Middleware\CheckAuthorMiddleware::class,
];
shell
php artisan migrate
shell
php artisan db:seed --class="\Nksoft\Master\database\seeds\NksoftSeeder"
shell
php artisan vendor:publish --tag=nksoft --force
shell
php artisan storage:link