ЛП
Validator::make($data, [
'ids' => [
Rule::in(['1', '2', '3']),
],
]);
Size: a a a
ЛП
Е
{{request()->route()->getName()}}
url.show
Route::get('/', 'HomeController@index')->name('index');
...
...
$urls = Cache::rememberForever('urls', function() {
$urls = DB::table('urls')
->pluck('url')
->toArray();
return $urls;
});
if (!empty($urls)) {
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
}
EG
{{request()->route()->getName()}}
url.show
Route::get('/', 'HomeController@index')->name('index');
...
...
$urls = Cache::rememberForever('urls', function() {
$urls = DB::table('urls')
->pluck('url')
->toArray();
return $urls;
});
if (!empty($urls)) {
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
}
V
{{request()->route()->getName()}}
url.show
Route::get('/', 'HomeController@index')->name('index');
...
...
$urls = Cache::rememberForever('urls', function() {
$urls = DB::table('urls')
->pluck('url')
->toArray();
return $urls;
});
if (!empty($urls)) {
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
}
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
V
$urls = DB::table('urls')
->pluck('url')
->toArray();
AH
{{request()->route()->getName()}}
url.show
Route::get('/', 'HomeController@index')->name('index');
...
...
$urls = Cache::rememberForever('urls', function() {
$urls = DB::table('urls')
->pluck('url')
->toArray();
return $urls;
});
if (!empty($urls)) {
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
}
url.show
.AH
{{request()->route()->getName()}}
url.show
Route::get('/', 'HomeController@index')->name('index');
...
...
$urls = Cache::rememberForever('urls', function() {
$urls = DB::table('urls')
->pluck('url')
->toArray();
return $urls;
});
if (!empty($urls)) {
foreach ($urls as $url) {
Route::get($url, 'UrlController@show')->name('url.show');
}
}
AH
w
return $message->only(['body', 'id', 'conversation_id', 'type', 'created_at', 'sender']);
MR
E
E
E
w
MR
MR
w
E
A
A