You can access the elements inside the data array directly, for example
controller
$data['user_name'] = 'Fred Blogs';
view
{{ $user_name }}
Hope it makes sense.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community