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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire