Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how return cutomize error text the firstOrFail laravel exeption

Route::bind('administrator', function ($id) {
        return Administrator::find($id) ?? abort(404, 'Administrator does not exist.');
});

 
PREVIOUS NEXT
Tagged: #return #cutomize #error #text #firstOrFail #laravel #exeption
ADD COMMENT
Topic
Name
7+7 =