2017 © Pedro Peláez
 

library dinkoapi

:package_description

image

dinkara/dinkoapi

:package_description

  • Sunday, May 20, 2018
  • by dinkara
  • Repository
  • 1 Watchers
  • 0 Stars
  • 165 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 35 Versions
  • 6 % Grown

The README.md

DinkoAPI Helper ~ Test version

Requirements

  • Laravel ~5.5 or higher

Composer Install

``` bash composer require dinkara/dinkoapi, (*1)


## Publish service If it is not automaticly published, add the service provider in `config/app.php`: ```php Dinkara\RepoBuilder\RepositoryBuilderServiceProvider::class, Dinkara\DinkoApi\Providers\DinkoApiServiceProvider::class, Dinkara\DinkoApi\Providers\ApiResponseServiceProvider::class, Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class

Also you need to add new aliases for available facades in config/app.php:, (*2)

        'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
        'JWTFactory' => Tymon\JWTAuth\Facades\JWTAuth::class,
        'ApiResponse' => Dinkara\DinkoApi\Facades\ResponseFacade::class,

For publishing new services you need to execute the following line, (*3)

``` bash php artisan vendor:publish --all, (*4)


To register new middleware you need to add following line in your `app\Http\Kernel.php` ```php 'dinkoapi.auth' => \Dinkara\DinkoApi\Http\Middleware\DinkoApiMiddleware::class,

And now you can protect your routes with JWT authenticate, simply adding dinkoapi.auth as middleware in your route., (*5)

All suggestions and advices are welcome! So please send us your feedback and we will try to improve this library

The Versions

20/05 2018

dev-master

9999999-dev https://github.com/dinkara/dinkoapi

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar dinkara
by Dzale

dinkara dinkoapi

20/05 2018
22/04 2018
22/04 2018
15/12 2017
04/12 2017
27/11 2017
27/11 2017
27/11 2017
22/11 2017
22/11 2017
22/11 2017
20/11 2017
20/11 2017
17/11 2017
17/11 2017
17/11 2017
17/11 2017
17/11 2017
16/11 2017
16/11 2017
16/11 2017
12/11 2017
20/10 2017
20/10 2017
20/10 2017
19/10 2017