How to Determine if a View Exists in Laravel

In some situations, while returning a view from a controller you may want to determine if the view exist or not. You can use exists method to perform this task. It will return true if the view exists else it will return false.

Quick Tip : Capture last login in Laravel

if (view()->exists('emails.customer')) {

For More Information : http


Leave a Comment.