laravel url =>route code example
Example 1: add id to route name in laravel blade
route('something.edit', ['id' => $event->data->id])
Example 2: laravel use url
use Illuminate\Support\Facades\URL;
echo URL::current();
route('something.edit', ['id' => $event->data->id])
use Illuminate\Support\Facades\URL;
echo URL::current();