Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active September 12, 2020 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/5f493ef3f249beb1176d98e059aa396d to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/5f493ef3f249beb1176d98e059aa396d to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
// ...
Route::middleware('throttle:api')->get('/throttle', function (Request $request) {
return response("throttle with api routes");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment