dimanche 14 juin 2020

How I can send object to a view in Laravel?

How I can send object to a view, currently I have something like that:

Route::get('/search', 'sampleController@search')->name('search');

So, I have this object {Page_title:$pageName,error:$errorMesssage} and I want to pass it to /search route.

Also, how I can retrieve the object values in the view side.



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

Aucun commentaire:

Enregistrer un commentaire