Support the ongoing development of Laravel.io →
Database Eloquent Forms
Last updated 2 years 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 7 years ago.
0

Sign in to participate in this thread!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.