Esempio n. 1
0
<?php

use Sikasir\V1\Outlets\Outlet;
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
get('/tes/{id}', function ($id) {
    return Outlet::where('company_id', '=', 1)->find($id)->variants()->where('variants.name', 'like', 'nihil')->get();
});
Route::group(['prefix' => 'doc'], function () {
    get('/endpoint', function () {
        return view('doc.endpoint');
    });
    get('/format', function () {
        return view('doc.format');
    });
});
Route::group(['prefix' => 'v1', 'namespace' => 'V1'], function () {
    Route::group(['namespace' => 'Auth', 'prefix' => 'auth'], function () {
        post('mobile/login', 'AuthController@mobileLogin');
        post('login', 'AuthController@login');
        post('/register', 'AuthController@signup');
        get('/refresh', 'AuthController@refresh');
    });