has('phantomjs_secret') && (config('ninja.phantomjs_secret') == $request->input('phantomjs_secret')) ) { return $next($request); } return redirect('/'); } }