davy_yg
1 year ago
952
5
Laravel

findOrFail();

Posted 1 year ago by davy_yg

Hello,

I wonder what is the difference between findOrFail and find ?

$Product = Product:findOrFail($id);

Thanks in advance.

Please sign in or create an account to participate in this conversation.