mawuekom / laravel-fastkit
Utils to deal quickly and easily with laravel or lumen project
dev-main
2021-06-03 15:27 UTC
Requires
- php: ^7.4|^8.0
- barryvdh/laravel-cors: ^2.0
- guzzlehttp/guzzle: ^7.0.1
- illuminate/http: ^8.0
- illuminate/support: ^8.0
- mawuekom/laravel-data-repository: dev-main
- mawuekom/laravel-whelper: dev-main
- urameshibr/lumen-form-request: ^1.5
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-29 06:41:39 UTC
README
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.