Skip to content

Instantly share code, notes, and snippets.

@BrandonLegault
Created July 2, 2019 17:53
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 BrandonLegault/2dad830dc79c626955f2e97141f91875 to your computer and use it in GitHub Desktop.
Save BrandonLegault/2dad830dc79c626955f2e97141f91875 to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Middleware;
use Closure;
class MyMiddleware
{
/**
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
{
$bar = $request->route('bar'); //null
$bar1 = $request->bar; //null
return $next($request);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment