mardi 1 décembre 2015

Create data to be outputted in a view?

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?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1No8lXM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire