John Davidson

php - problem Automatic addition of "http" in redirect route laravel 7.x

0 comments
Message:


"http://" is added to the beginning of the url when I want to redirect route


for example

true redirect => site.com/publisher/dashboard

But something happens => site.com/http://publisher/dashboard



Contolletr.php :


return redirect()->route('publisher.dashboard');

web.php:


Route::namespace('Publisher')->prefix('publisher')->name('publisher.')->group(function () {

Route::middleware(['publisher','checkStatus:publisher'])->group(function () {
Route::get('dashboard', 'PublisherController@dashboard')->name('dashboard');
})


My Answer:
It seems like your question got cut off. Can you please provide more details or clarify what you are looking for help with in PHP?

Rate this post

3 of 5 based on 3830 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us