In my view I output data from my database in the view via:
{{ $data->id }}
In one particular view I need do not get the data from a database but need to keep the view the same and manually set the id.
I've tried setting the id in my controller like:
$data['id'=>1];
But this fails to output in the view with:
{{ $data->id }}
Where am I going wrong?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire