nksoft/laravel-master

The Laravel Framework.

v1.0.0 2020-04-30 15:39 UTC

This package is auto-updated.

Last update: 2024-04-29 04:03:45 UTC


README

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.