nksoft/laravel-master

The Laravel Framework.

Downloads

28

Stars

0

Version

v1.0.0

Installation

Run the command below to install via Composer

composer require nksoft/laravel-master

Getting Started

Add config file config/app.php

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

Add kernel file app/Http/Middleware/Kernel.php

<?php
protected $routeMiddleware = [
    ...
    'nksoft' => \Nksoft\Master\Middleware\CheckAuthorMiddleware::class,
];

Migrate package

php artisan migrate

DB seeder package

php artisan db:seed --class="\Nksoft\Master\database\seeds\NksoftSeeder"

Publishes file

php artisan vendor:publish --tag=nksoft --force

Syslink storage file

php artisan storage:link

License

Released under the MIT License attached with this code.

phuongle-nksoft

Author

phuongle-nksoft