<?php abort(403);
<?php ->resolveAllParameters($route, new $component);
} catch (ModelNotFoundException $exception) {
if (method_exists($route,'getMissing') && $route->getMissing()) {
abort(
$route->getMissing()(request())
);
}
throw $exception;
<?php }
if ($to && ! app(HandleRequests::class)->isLivewireRequest()) {
abort(redirect($to));
}
if (! $to) return;
<?php {
public function mount()
{
abort(404);
}
public function render()
<?php {
public function mount()
{
abort(500);
}
public function render()
<?php ($request->user() instanceof MustVerifyEmail &&
! $request->user()->hasVerifiedEmail())) {
return $request->expectsJson()
? abort(403, 'Your email address is not verified.')
: Redirect::guest(URL::route($redirectToRoute ?: 'verification.notice'));
}
<?php function abort_if($boolean, $code, $message = '', array $headers = [])
{
if ($boolean) {
abort($code, $message, $headers);
}
}
}
<?php function abort_unless($boolean, $code, $message = '', array $headers = [])
{
if (! $boolean) {
abort($code, $message, $headers);
}
}
}
<?php ? ($precognition ?? $default)
: $default;
abort(Router::toResponse(request(), value($response)));
});
if (request()->isPrecognitive()) {
<?php });
if (request()->isPrecognitive()) {
abort(204, headers: ['Precognition-Success' => 'true']);
}
return $payload;
<?php {
return function ($validator) use ($request) {
if ($validator->messages()->isEmpty() && $request->headers->has('Precognition-Validate-Only')) {
abort(204, headers: ['Precognition-Success' => 'true']);
}
};
}
<?php {
$this->resolveParameters($route, $callable);
abort(204, headers: ['Precognition-Success' => 'true']);
}
}
<?php $this->resolveParameters($route, $controller, $method);
abort(204, headers: ['Precognition-Success' => 'true']);
}
<?php $router->post('api/error', [
'uses' => function () {
abort(500);
},
]);
<?php public function ensureLocalEnvironment()
{
if (! app()->environment('local')) {
abort(403, "Runnable solutions are disabled in non-local environments. Please make sure `APP_ENV` is set correctly. Additionally please make sure `APP_DEBUG` is set to false on ANY production environment!");
}
}
<?php );
if ($ipIsPublic) {
abort(403, "Solutions can only be executed by requests from a local IP address. Please also make sure `APP_DEBUG` is set to false on ANY production environment.");
}
}
}