This is my code:
$get_all = Geo_Postal_us::findOrFail($postal);
Using this query, laraveltry to find the identifier specified in the table.
I do not have an identifier, for the primary key I have a mail column.
So, how to set the function to search the value in the mail column, and not to search from the id column?
Thank,
source
share