Dependency Injection

use Illuminate\Http\Request;
Route::get('/users', function (Request $request) {
    // ...
});

Type hint concrete dependencies for auto-injection

Comments