D
D
daniel_wesson2019-08-06 21:58:15
Laravel
daniel_wesson, 2019-08-06 21:58:15

Is there a way in laravel to use dot in view file names?

I would really like to use a dot in the name of the view files, for example:
account.blade.php
account.login.blade.php
account.register.blade.php
account.settings.blade.php
account.wishlist.blade.php
But, of course , laravel interprets the dot as "/" and looks for the file in the "account" directory. I would not want to change anything in the laravel core itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-08-06
@daniel_wesson

1. You create your own FileViewFinder with the necessary logic .
2. Redefine the binding in the container.
3.???
4. PROFIT!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question