ErrorException Missing argument 1 for Illuminate\Support\MessageBag::has()


When i access my Laravel Project. It Returns Following Errors. How to Solve It.

In my Blade Code :

Solution :

Check this line:

has() is used to filter the selecting model based on a relationship. So it acts very similarly to a normal WHERE condition. If you just use has(‘relation’) that means you only want to get the models that have at least one related model in this relation.

has() must have a string index as its parameter to check whether it exist or not. But in your case it is blank.

Replace the following line: