Try this :
<?php
$completePath = url()->getRequest()->getPathInfo();
$path = ltrim(substr($completePath, strrpos($completePath, '/')), '/');
dd($completePath, $path);
?>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community