pass id variable from laravel route to controller function code example Example: laravel use url use Illuminate\Support\Facades\URL; echo URL::current();