2017 © Pedro Peláez
 

package laravel-connect

Connect to a laravel backend from anywhere

image

square1ltd/laravel-connect

Connect to a laravel backend from anywhere

  • Wednesday, June 6, 2018
  • by robertoprato
  • Repository
  • 5 Watchers
  • 1 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Laravel Connect

Access data of a laravel app via a REST API., (*1)

Installation

$ composer require square1ltd/laravel-connect

Setup

Register the service in the app config

Square1\Laravel\Connect\ConnectServiceProvider::class, (*2)

Update the Schema Facade in the app config

Replace 
    'Schema' => Illuminate\Support\Facades\Schema::class  
with    
    'Schema' => Square1\Laravel\Connect\Model\ConnectSchema::class

Double check that the migration files are using the Schema facade, (*3)

Add authorization guards

    'guards' => [
        'connect' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],

Config

$ php artisan connect:init

ENV

CONNECT_API_KEY: api key CONNECT_API_AUTH_CLIENT_ID laravel passport client id CONNECT_API_AUTH_GRANT_TYPE laravel passport grant type ( default is password) CONNECT_API_AUTH_CLIENT_SECRET laravel passport secret, (*4)

The Versions

06/06 2018

dev-master

9999999-dev

Connect to a laravel backend from anywhere

  Sources   Download

MIT Free

The Requires

 

by Roberto Prato

27/01 2018

v1.0

1.0.0.0

Connect to a laravel backend from anywhere

  Sources   Download

MIT Free

The Requires

 

by Roberto Prato

06/12 2017

dev-case_fix

dev-case_fix

Connect to a laravel backend from anywhere

  Sources   Download

Free

The Requires

 

by Roberto Prato