I have created small project with Laravel5.8. I am using datatables to show records. The record can be edit by click on edit. I am passing record id with edit a tag. then i am getting record id from header. the problem is my record id is to long. so how to handle long url? is any way to handle this problem?
Datatable code:
$editLink = '<a href="edit/' .$recordId.'">Edit</a>';
Route:
Route::get('records/edit/{record_id}', ['as' => 'recordEdit', 'uses' => 'RecordController@edit']);
RecordController
public function edit(Request $request,$recordID) {
// code
}
I need to minimise the url. it is too long.
Thank you.
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2MaraFH
via IFTTT
Aucun commentaire:
Enregistrer un commentaire