S
S
SaNsA_St4Rk2019-05-23 11:20:49
Laravel
SaNsA_St4Rk, 2019-05-23 11:20:49

How to display an error during registration that the entered data in the database was not found in Laravel 5.8.8?

There is a table with personal accounts that the user enters during registration, and when the user enters the wrong account, Trying to get property of non-object is displayed, and nothing can be done except drop this user from the database to start registration again. How to make it so that it simply displays an error that the l / s was not found, check the correctness of the entered data, etc. ??? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Shcherbin, 2019-05-24
@ischerbin

Laravel validation, rule exists https://laravel.com/docs/5.8/validation#rule-exists

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question