Support the ongoing development of Laravel.io →
posted 7 years ago
Views
Last updated 2 years ago.
0

You can also use this way using route:

In Route File:

Route::get('/object/{id}', ['as'=>'object','uses'=>'HomeController@object']);

In View File

<a href="{{ route('object',$object->obj_id) }}">{{ $object->name }} </a>

Last updated 7 years ago.
0

The easiest way to display link into blade is HTML::link(Laravel HTML Helper), unfortunately Laravel HTML Helper has been disabled by default in Laravel 5. You can re activate it, read how to use it

After reactivate this, use it like: {{ HTML::link('/object/$object->obj_id', $object->name, [], true)}}

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ageurtse ageurtse Joined 26 Dec 2016

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.