Skip to main content

All Questions

0 votes
1 answer
172 views

sending emails with laravel 9 using azure

I use the azure-mailer for laravel, then I set up azure communication services and the email communcation service, I set up an azure subdomain instead of a custom one https://github.com/hafael/azure-...
player zero's user avatar
0 votes
1 answer
146 views

Unable to Authenticate User in Laravel PHP with SQLite Database [duplicate]

I have a simple login and I have been unable to find the error for 2 days now. I have the required login and password in the database, but no matter what I enter in the login, I am thrown out and it ...
Igor galaxy's user avatar
1 vote
0 answers
38 views

How to use auth policies to exclude some properties on a model when rendering JSON?

I've got some kind of calendar feature in my Laravel app. Users can have one or more calendars. The owner of a calendar can share it with another user. If an owner shares a calendar with someone, he ...
user2190492's user avatar
  • 1,202
2 votes
1 answer
2k views

Should the access and refresh token have the same payload?

I'm creating and application with Laravel and NextJs and I'm developing the authentication and authorization with JWT (https://github.com/PHP-Open-Source-Saver/jwt-auth) but I have some doubts. The ...
Juan Pablo B's user avatar
2 votes
1 answer
46 views

What difference between using Authorization method and new attached param: accessToken in Header?

I have a question related to Authorization when creating API. I often see people using Bearer Token, OAuth 2.0 to authenticate an accessToken is valid or not. So which difference if I use headers with ...
Hai Tien's user avatar
  • 3,117
0 votes
1 answer
90 views

Can Laravel route model binding work with nesting for middlewares?

I'm running this code to use my project policy for middlewares. It works as long as {project} is "last in the chain". Is there any way to make it work for deeper levels too? Route::...
SeaBass's user avatar
  • 1,764
0 votes
1 answer
762 views

Laravel Sanctum Authorization outside server problem

I created 2 different laravel project client server in the client-side i make request to my server-side and then the server-side returning the Bearer token to the client-side, then in the client-...
JEPPUNG's user avatar
  • 13
0 votes
1 answer
1k views

What are some of user authentication methods for Laravel API server?

Building API backend in Laravel for React.js SPA and React-Native mobile app. Previously I'd use Laravel/ui auth system but now when I'm doing SPA over APIs it's not quite simple anymore so I have ...
Janjac's user avatar
  • 128
0 votes
1 answer
234 views

Laravel keeps passing GenericUser to Policies instead of my User Model

I am trying to use the standard Laravel auth related functionality. I have the standard login, register, logout, etc... working fine. But my problem is that whenever I go to use functions like Auth::...
ComputerLocus's user avatar
0 votes
1 answer
224 views

Authorization and php

I created the custom basic auth in laravel. But, whenever I try to authenticate, there's a 400 bad request error. Authorization header comes out well like "basic base_encode64 (username: password)...
hakyoung jung's user avatar
0 votes
1 answer
50 views

There isn't displays authentication block in Laravel project

I'm completely new in Laravel. I don't understand why authentication block doesn't displays after I installed laravel/ui and php artisan make:auth command. These pages have been added. But there aren'...
Adeveloper's user avatar
0 votes
1 answer
145 views

Laravel 8 publish apis for third parties

I want to build some APIs for third parties, Basically what I need is that a third party must get a token in order to access some APIs (Register User, Update User Profile), So those APIs cannot be ...
Sem Sem's user avatar
  • 23
1 vote
1 answer
1k views

laravel 8 -> authorization with jwt and postman

I'm building an API with Laravel8 and use postman , Also I use JWT for authentication and want to authorization for creating a new post , I want to be able to create a new post only when the user is ...
calisa's user avatar
  • 215
23 votes
3 answers
11k views

What is the difference between Middleware vs Guards vs Gates/Policies in Laravel

Can anyone help me with understanding when/how to use each of these?
Abdulrahman's user avatar
0 votes
0 answers
152 views

Authorize/authenticate Laravel users and Cordova users with NodeJS server (Zoho)

I am working on a platform which uses a Laravel server to deliver Web content. This Laravel server consumes services provided by a NodeJS server. Up until now, users can create accounts and login ...
JaffaMicrobrain's user avatar

15 30 50 per page