A
A
avr19722018-04-05 13:05:53
Laravel
avr1972, 2018-04-05 13:05:53

Creating The First Available View - what is it and why?

Reading the Laravel Documentation

Creating The First Available View
Using the first method, you may create the first view that exists in a given array of views. This is useful if your application or package allows views to be customized or overwritten:
Please explain what it is and why is it needed? What does the first view in the passed array of views mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-04-05
@avr1972

This is useful if your application or package allows views to be customized or overwritten:

This is useful if your application or component supports template customization/remapping.
If someone uploaded a custom template to custom/admin.blade.php it will be used for output.
In other cases, the second standard admin.blade.php will be used

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question