Q:

Laravel fallback view

I need to return a default view if a particular view is not available. I expect something like return view(['order.create', 'base.create'], ['params' => $params]); Can I achieve this without having set of if statements in Laravel?

A:

try this:
return view()->first(['order.create', 'base.create'], ['params' => $params]);

