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>
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)}}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community