throwexception laravel

139

throwexception laravel -

throw new \ErrorException('Error found');

laravel throw function -

public function isValid($value)
{
    try {
        // Validate the value...
    } catch (Throwable $e) {
        report($e);

        return false;
    }
}

Comments

Submit
0 Comments