askync/utils

Utilities for laravel/lumen framework
108
Install
composer require askync/utils
Latest Version:1.11.1
License:mit
Last Updated:Aug 1, 2022
Links: GitHub  ·  Packagist
Maintainer: godamri

#Askync/Utils

###Some Api Utilities for laravel/lumen framework

Success Response

return \Askync\Utils\Facades\AskyncResponse::success([
    'name' => 'John Doe',
    'email' => 'doe@john.com'
]);

Error Response

return \Askync\Utils\Facades\AskyncResponse::success(401, 'Unauthorized');

Throw Error as Response, Break the process and return response from anywhere in your code

    throw new \Askync\Utils\Utils\ResponseException('Server cannot accept the data type');

##Setup
bootstrap/app.php

    ...
    $app->singleton(
        Illuminate\Contracts\Debug\ExceptionHandler::class,
        \Askync\Utils\Handler\LumenErrorHandler::class
    );

    ...

    $app->register(\Askync\Utils\UtilsServiceProvider::class);
    ...

Related Packages

gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444