This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class ApiAuthMiddleware | |
{ | |
public function handle($request, Closure $next) | |
{ | |
# get current Route | |
return response()->json(\Route::current()); | |
# list all Routes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: | |
adapter: mysql2 | |
encoding: utf8 | |
database: db_test | |
pool: 5 | |
username: root | |
password: | |
development: | |
adapter: mysql2 |