wffranco / laravel-helpers
Some helpers for Laravel 5.*
v1.0.1
2021-01-20 17:52 UTC
Requires
- php: ^7.0
- laravel/framework: ^5.2
This package is not auto-updated.
Last update: 2025-07-17 15:18:30 UTC
README
Package that contains some helpers for Laravel 5.*
Installation
This package is easy to set up. Just follow a couple of steps.
Composer
Pull this package in through Composer (file composer.json
).
{ "require": { "wffranco/laravel-helpers": "~1.0" } }
Cors
If you need to use cross origin, here provides a solution.
Service Provider
Add the package to your application service providers in config/app.php
file.
'providers' => [ ... /** * Third Party Service Providers... */ Wffranco\Helpers\ServiceProvider::class, ],
Config File
Publish the package config file to your application. Run these command inside your terminal.
php artisan vendor:publish --provider="Wffranco\Helpers\ServiceProvider" --tag=config
Change the configuration acording to your needs.
Cors Middleware
Finally, add the Cors middleware to your app\Http\Kernel.php
file.
protected $middleware = [ ... \Wffranco\Helpers\Http\Middleware\Cors::class, ];
Usage
Documentation not finished.