Ad

How To Divide Huge Blade File Into Small Parts

- 1 answer

I have a blade file that has over 4k sentences, it works well for sure but it is so difficult for me to edit the file and find what I am looking for, hence I am looking for a way to divide this huge file into small parts to make it easy to edit later or any solution for that.

Ad

Answer

resourses/views/one.blade.php

one

resourses/views/two.blade.php

two

resourses/views/all.blade.php

@include('one') @include('two')

Ad
source: stackoverflow.com
Ad