Support the ongoing development of Laravel.io →
Database Eloquent Forms
Last updated 2 weeks ago.
0

I think that's not the best practice. You could send data to view like return view('flight')->with('tripID', $tripID)->with('tripName', $chatripNamet); and then in the view you can access data like {{ tripName }} and {{ tripID }}.

Take a look here https://laravel.com/docs/5.4/views#passing-data-to-views

I hope this will help you.

Last updated 4 years ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Gallitin Gallitin gallitin Joined 20 Jul 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.