zdirnecamlcs96/laravel-helpers

There is no license information available for the latest version (v2.2.0) of this package.

Helpers for personal use

v2.2.0 2023-04-13 09:25 UTC

README

Helpers for Laravel 8 project

Laravel Version Supported
8.* v1.0^
9.* v2.0^

How to Use

You may include the helper inside Controller.php. For more information, you can refer PHP Traits.

<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Zdirnecamlcs96\Helpers\Traits\Helpers; // Import here

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, Helpers; // Use here

}

After install

Please remove ValidatesRequests Trait in LoginController, it will cause ambiguous error as this package overwrote the function inside the trait.

Contributing

Thank you for considering contributing. Since this is for private usage, please contact me for the contribution guide.

Laravel License

The Laravel framework is open-sourced software licensed under the MIT license.