lundi 27 mai 2019

how to handle long url parameter in laravel 5.8

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
    }

Header url : http://localhost/test/public/records/edit/908B95EF26445DD334C44B1ED7991CFADC37D23B0B2E41E9EF82DA61CF8D63722A4CA6EF4C5EDAAD3729BD4793A5400EC162344FE4DBAAF072DFE5F16A279A30

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