I use Sentry on laravel 4.2 Users login with sentry in mydomain com but when go to wildcard domain (test.mydomain com) became logout.
Thanks
Related
I am newbie with laravel.
I understand that in order to protect routes, you have to first check if a user is authenticated and a session is made. thus, we apply auth middleware in the web routes.
However, I am trying to implement laravel passport and now I am not able to proceed to my routes anymore since I have been authenticated using the passport.
My question is that is it possible to secure the web routes with passport token instead of laravel session? and if so, how one should do it?
Thanks, sorry for english, not native speaker.
Laravel passport is for API routes not for web routes you can use laravel session for web
for more details read it's documentation
https://laravel.com/docs/8.x/passport
I am trying to implement multi tenancy where each registered user will have their own subdomain -e.g. user_subdomain.example.com
My users authenticate on example.com - how can I redirect them to their subdomain on successful login/registration? -For example to user1.example.com
Check out the documentation, Laravel has a handy way of doing this:
https://laravel.com/docs/7.x/routing#route-group-subdomain-routing
check this example https://medium.com/#pagcosma/multi-subdomain-sessions-in-laravel-40fd31b199fa
I have doing tests with succes ;)
I'm a newbie in Laravel. Can someone explain what is the difference from web, auth, and guest middleware in Laravel 5.8?
auth middleware allows only for authenticated users to access the routes and your logic behind it. For example, only auth users can create questions and give answers.
guest middleware can only be accessed by unauthenticated users. For example, login and register page.
And web middleware is a group of middleware that you commonly use in your application. Such as cookie encryption, csrf token verification, and etc.
I have a existing admin panel in a laravel based web application. I made few part of this admin panel in vue.js single page application. I don't wanted to use token based authentication for this spa part of this application. How can I give api authentication from my existing session login system.
Change the auth:api middleware to just auth in ./routes/api.php
And in ./app/Http/Kernel.php \Illuminate\Session\Middleware\StartSession::class, to the middlewareGroups array under api
Laravel 5.2 Session not persist after login, I have not used any
middleware or default laravel auth for login. I used native php login
code,it works fine on local environment but on live server it makes this problem.
Try changing the permission of the folder storage, found in your laravel project directory, to 755