Laravel logout after page refresh another Laravel project - laravel-5

When I logged in a Laravel-5 project after logged in when I open another Laravel-5 project in another tab in the same browser, when I refresh the logged in project it redirect to login page.

Go to config folder then in session.php file, change the following
'cookie' => 'laravel_session',
TO
'cookie' => 'myapp_session',

Related

How can I load the browser to another URL using Vue + Laravel Jetstream?

I am running a portal using Laravel Jetstream. There is a user profile page where, If I click on the "Dashboard" link, the page needs to be redirected to a separate route by loading the browser. But now, when I am clicking on the "Dashboard" link, the browser is not loading and is redirecting to the same page.
resources/js/Layouts/Applayout.vue
<jet-nav-link :href="route('dashboard')">
Dashboard
</jet-nav-link>
routes/web.php
Route::get('/dashboard', [DashboardController::class,'index'])->name('dashboard');
Below is the page showing when I am clicking on dashboard link. I need to redirect to localhost:8000/dashboard.

How can I define authentication related routes in laravel8?

I followed tutorials and using the below commands I installed all the files needed for register user, login, etc:
composer require laravel/ui
php artisan ui vue --auth
now I have Auth directory in my controllers list and also new forms for register users, login, home and etc are automatically created, I added a link on my page to enter me to registration form, but when I add user, after I hit the register button it says home not found and shows me 404 error which is about route, where I have added Auth::routes(); already to my web blade page. I checked the database, the user is successfully added to the table.
You must add redirectTo property to your auth controller. It's default to /home and you're getting 404 cause you don't have this route.

I can't access the Voyager admin panel after installing

I tried hard-coding an admin panel in my Laravel project only to find out about Voyager.
So I installed voyager on my project (the admin panel files are still there).
However, every time I test it out by going to mydomain.test/dashboard/login , it keeps going back to my site's index page.
Do you think it has something to do with my hardcoded admin panel files? The files are inside the project folder prior to installing voyager.
Or I'm missing something here?
I changed the route's prefix into 'dashboard' instead of 'admin' because my hardcoded admin panel is using 'admin'.
Route::get('/', function () {
return view('front');
});
Route::group(['prefix' => 'dashboard'], function () {
Voyager::routes();
});
I want to access the Voyager admin panel.
[UPDATE]
I have finally resolved this issue by simply adding a new user and grant admin access to it.
your url it's not good.
try "mydomain.test/admin/login" or "mydomain.test/admin"
be careful, create the first user from the command line.

Laravel - Route to subdomain with session data

I'm using laravel for my project, i have two subdomains where both point to the same app, app.project.com,user.project.com
When the user logs in on app.project.com i want to route him to user.project.com but the issue is that sessions aren't transfered so the user is router to user.project.com but faces the login page again
Any solution ?
Found a solution
in config/session.php make sure this is found
'domain' => env('SESSION_DOMAIN', null),
and in .env
SESSION_DOMAIN=.project.com

Magento html?___SID=U at the end of urls

I have a multistore magento site. SID in front is enabled as I want customers to cross around sites without login issue.
But I want to remove "html?___SID=" which is at the end of all my urls.
What can i do?
Go to Admin => System => Configuration => Web => Session Validation Settings and disable config Use SID on Frontend => No
For more information check here or check here

Resources