Skip to content

mawuva/laravel-fastkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utils to deal quickly and easily with laravel or lumen project

A useful toolkit for a quick start with laravel or lumen... It can also help you in your rest api development with these last

Installation

You can install the package via composer:

composer require mawuekom/laravel-fastkit

This package use :

Check on it for good installation

Usage

Laravel

Go to config/app.php, and add this in the providers key

'providers' =>
    ...
    Mawuekom\Fastkit\FastkitServiceProvider::class
    ...
];

Publish package config

php artisan vendor:publish --provider="Mawuekom\Fastkit\FastkitServiceProvider"

Go to App\Http\Kernel.php, and add this in the specified key

protected $routeMiddleware = [
    ...
    'cors' => Fruitcake\Cors\HandleCors::class
    'sanitized_request' => \Mawuekom\Fastkit\Http\Middleware\SanitizedRequest::class,
    'api_localization' => \Mawuekom\Fastkit\Http\Middleware\ApiLocalization::class,
    'check_id' =>  \Mawuekom\Fastkit\Http\Middleware\CheckResourceID::class
    ...
];

Lumen

Go to bootstrap/app.php, and add this in the specified key

$app->middleware([
    ...
    Fruitcake\Cors\HandleCors::class,
    ...
]);

$app->routeMiddleware([
    ...
    'cors' => Fruitcake\Cors\HandleCors::class
    'sanitized_request' => \Mawuekom\Fastkit\Http\Middleware\SanitizedRequest::class,
    'api_localization' => \Mawuekom\Fastkit\Http\Middleware\ApiLocalization::class,
    'check_id' =>  \Mawuekom\Fastkit\Http\Middleware\CheckResourceID::class
    ...
]);

// Add provider also
$app->register(Mawuekom\Fastkit\FastkitServiceProvider::class);

Once done, enjoy it

Report bug

Contact me on Twitter @ephraimseddor

License

The MIT License (MIT). Please see License File for more information.

About

Utils to deal quickly and easily with laravel or lumen project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages