vendredi 13 mai 2022

how to get name from url dynamically

How to get a part of the url?

query to be made:

$name = 'LeSant'; // (from url dinamic) //
$event = Dias::where('name', $name)->first();

enter image description here

How can I get name from the url? /event/LeSant



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire