OT
Size: a a a
OT
OT
Redirect::where('id', $id)->update([
D
D
D
OT
D
D
OT
Route::model('redirect', 'NewsPortal\Redirect\Redirect');
Route::resource('redirect', 'RedirectController');
D
D
D
OT
OT
protected function mapRedirectsRoutes()
{
Route::
middleware(['web'])
->prefix('control-p-290001762')
->namespace('NewsPortal\Redirect\Http\Controllers')
->as('redirect:')
->group(base_path('routes/redirect.php'));
}
OT
try {
Redirect::create([
'url' => $request->get('url'),
'redirect' => $request->get('redirect'),
'status' => $request->get('status') === 'on' ? 1 : 0,
'area' => app()->getLocale()
]);
redirect()->route('redirect:viewIndex')->with('success', 'Əlavə edildi.');
} catch (\Illuminate\Database\QueryException $exception) {
$errorInfo = $exception->errorInfo;
redirect()->back()->with('error', $errorInfo);
}
R#
OT
return
LaravelRedirect::route('redirect:viewIndex')->with('success', 'Əlavə edildi.');
use Illuminate\Support\Facades\Redirect as LaravelRedirect;
КЭ
Route::model('redirect', 'NewsPortal\Redirect\Redirect');
Route::resource('redirect', 'RedirectController');
КЭ
OT