vendredi 25 mai 2018

Laravel: Include a Blade with dynamic value

I want to include a Blade into my view:

The name of the view which I want to include is:

1.blade.php

When I call it with:

@include('1')

then everything is working. When I try to load "1" out of the Database with

@include(' ')

where the id = 1 then I get the error message:

throw new InvalidArgumentException("View [{$name}] not found.");

Does anybody know what I am doing wrong?

Kind Regards,

Stefan



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2secqIz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire