URLを取得できるコマンド
$uri = \Route::current()->uri();
<?php
Route::get('/practice', function () {
return '現在のURL:'.$uri = \Route::current()->uri();
});
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
URLを取得できるコマンド
$uri = \Route::current()->uri();
<?php
Route::get('/practice', function () {
return '現在のURL:'.$uri = \Route::current()->uri();
});
Register as a new user and use Qiita more conveniently
Go to list of users who liked