Laravel - Views - Determining If A View Exists

If you need to determine if a view exists, you may use the View facade. The exists method will return true if the view exists:

    
    use Illuminate\Support\Facades\View;
    
    if (View::exists('emails.customer')) {
        //
    }