Check user’s each request after user logged into the with conditions in Laravel 6.18

Ok let me explain my requirement shortly. I have a portal where suppliers can register and add their content to our site. Usually, registration has 5 steps where after the supplier completes the first …

symfony 5 authentification problem with getUser()

I am trying to work with Symfony 5 and the security component and I am blocked on a bug. the bug is on authentification success after redirection, $this->getUser() return null but at the same time, …

Roles and permissions in php

I am making a menu, but I want to limit it to only some users with a specific permission can see it. the query: SELECT idpermission,userid FROM user_permissions WHERE userid = “U001” Result: User …

Auth::check() returns false after successful login attempt

I’m trying to make a custom guard and I am successful, but when I attempt a login using the guard the $this->attemptLogin($request) returns true but after directly afterwards the Auth::check() …

How to make /login route accessible only for anonymous users in Symfony4?

My access_controll looks like: – { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY} – { path: ^/, roles: ROLE_USER} I need to give an access to route /login only to anonymously authenticated users….

How to use on Laravel guard for the main domain and another for the subdomains

I’m building a multi-tenant application where the idea is the admins access through the main domain (http://myapp.app) to the dashboard and the regular users access to another dashboard on their …

How does Auth::attempt check password in Laravel?

I’m using Laravel 5.4. I know that hashing is one way thing. as I remembered, I hashed passwords and saved them on database and when i wanted to check user password I would hash their entered password …

Laravel can only login in Incognito tab

I have a strange issue with my Laravel project. Can’t find out, when it first strated – I can only login/logout opening the app in incognito tab. And in normal tab it won’t log me out, when I am …

Laravel – Multiple User Logins Under One Main User Account

My application has the structure of monthly subscriptions that give you a single “admin” account login responsible for billing. Under that main user account, there can be numerous employees, some, …

PHP cURL/Socket and HTTP authentication

I have a webpage with a list of HTML links for images in a protected subfolder. This folder is protected via .htaccess and HTTP authentication. Is there a way to use cURL/Socket, or something like …