I want to take the entire contents of files in resources\views\angularTemplates folder
I did before something like that for a single file and with asset() function :
<script type="text/ng-template" id="defult-icons">
{!! file_get_contents(asset('assets/img/defult_icons.svg')); !!}
</script>
But Now I want to make a one, for a whole folder -
in resources\views folder
And get in every interaction in a loop - the current file's name
Say something like that:
@loop('views\angularTemplates', $name_file, $content_file)
<script type="text/ng-template" id="{!! $name_file !!}">
{!! $content_file !!}
</script>
@endloop
There is a way to do it with blade way ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire