lundi 5 avril 2021

Laravel : Pass dynamic variables to routes

New to Laravel so please be patient with me, I have a route in web.php as below :

Route::get('/add_rcord/{formid}/{userid}', 'site_controller@add_rcord')->name('add_rcord');

I need to go to the URL by clicking a link while passing 2 variables as below :

<?php

  $value1=1;
  $value2=2; ?>
  <a href="">Add Record</a>

This does not work , Can someone advise me how can I do that



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire