for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GitScrum\Http\Middleware;
use Closure;
use Auth;
class ProductbacklogMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
$total = Auth::user()->organizations()->count();
if (!$total) {
return redirect()->route('wizard.step1');
}
return $next($request);