App\Http\Middleware\RobotsMiddleware::shouldIndex PHP Method

shouldIndex() protected method

protected shouldIndex ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
return boolean
    protected function shouldIndex(Request $request) : bool
    {
        if (ends_with($request->getHost(), 'spatie.be')) {
            return false;
        }
        if (!app()->environment('production')) {
            return false;
        }
        if (!env('ALLOW_ROBOTS')) {
            return false;
        }
        return request()->isFront();
    }
RobotsMiddleware