yojana/base

Base common file for multiple services.

dev-master 2021-10-07 05:15 UTC

This package is auto-updated.

Last update: 2022-11-07 07:37:25 UTC


README

Require Packages

    composer require webpatser/laravel-uuid niklasravnsborg/laravel-pdf maatwebsite/excel guzzlehttp/guzzle pearl/lumen-request-validate

Installation

    composer require yojana/base

Usages

Inject Contoller


use Yojana\Http\Controllers\Controller;

Inject Repositories


use Yojana\Http\Repositories\YojanaBaseInterface;
use Yojana\Http\Repositories\YojanaBaseRepository;

Inject Requests


use Yojana\Http\Requests\BaseFormRequest;

Inject Middleware


// app/bootstrap.php

$app->routeMiddleware([
    ...,
    'client' => Yojana\Http\Middleware\CheckValidTokenMiddleware::class
])


Inject Traits


//SINGLE IMPORT
use Yojana\Traits\CommonTrait;

// OR MULTIPLE IMPORT, PHP 7+ code

use Yojana\Traits\{CommonTrait, FileUploadTrait,HelperTrait,ImageUploadTrait,RepoTrait,SecurityTrait}