#### Category : laravel-breeze

Hello I want to include my relation table roles when I login. I used Laravel Breeze for authentication. Models/User.php namespace AppModels; use IlluminateContractsAuthMustVerifyEmail; use IlluminateDatabaseEloquentFactoriesHasFactory; use IlluminateFoundationAuthUser as Authenticatable; use IlluminateNotificationsNotifiable; use LaravelSanctumHasApiTokens; class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable; /** * The attributes that are mass assignable. * * @var string[] */ ..

I was looking through the implementation of Laravel Breeze to see how they built the front end. I understand everything in the blade file except for a few things which have syntax I don’t understand. Within navigation.blade.php you can find the following: <button @click="open = !open" class…> <div :class="{‘block’:open, ‘hidden’: ! open}" As for the ..

I have a boolean column in my users table for active. But I can’t figure out how to have the column checked during login and only allow login if active has a value of 1. I wish I had examples of code I’ve tried, but I am literally stuck. I am using Laravel 8 and ..

I am working on a laravel project, for authentication, I have used passport for API. and used php artisan ui bootstrap –auth for web PHP. using php artisan ui bootstrap –auth laravel not be able to authenticate the current user I have researched a lot and found a solution which is a package name breeze ..

I have two different methods through which I want login to happen User enters phone number and a password that they have set, and does login User enters phone number, requests OTP, submits the received OTP and does the login. The first method is working for me, while the second method is not. Relevant code ..

I made a table using yajra datatables, everything works fine (buttons, table title, table data, editing, etc.) (Listing 1). Now I am trying to implement this using Laravel 8 components, but I do not understand how to do it correctly. I gave an example of one of my attempts below (Listing 2), but there I ..

I made a table using yajra datatables, everything works fine (buttons, table title, table data, editing, etc.) (Listing 1). Now I am trying to implement this using Laravel 8 components, but I do not understand how to do it correctly. I gave an example of one of my attempts below (Listing 2), but there I ..

I have set up a project using Laravel Breeze and am using some of the default components in it. One of these is the dropdown component, used in the nav bar. By default, you need to click on the dropdown in order for the menu to appear below. However, I want to modify this component ..

I am using the following trait to generate UUID’s for my user model. I have setup a listener to the following event: IlluminateAuthEventsLogin. This works when you just normally sign-in to the app (using Laravel Breeze). But when I manually do auth()->user($user) I get back an instance of IlluminateFoundationAuthUser where the keyType is an integer .. Read more Hi I’m using Laravel Breeze with Inertia JS. I’m using "yaminncco / vue-sidebar-menu package" for the sidebar. I’m asking if there is a way to display menu element depending on the user role (admin : See everything, simple user not, ….). There is nothing about this in the package doc. So if any one has .. Read more I’m really new to laravel and the system that I’m trying to make requires 4 access level. I’m looking through youtube and I saw a video about multiple auth through laratrust. Im not quite sure if I should follow it because i dont have any idea if it’s good or what. Then i see some .. Read more I working on an app and using Laravel Breeze Vue for the first time. Just some quick background, Laravel Breeze provides some quick scaffolding for authentication. When a user logs in, they are presented with a simple dashboard page. I have added a new link to this page as per below. app/resources/js/Layouts/Authenticated.vue <!– Navigation Links .. Read more Using the default tailwindcss navbar in Laravel Breeze, I want to center the application logo, whilst having navigation links on the far left and right of it. There will be three navigation links on one side, and just two on the other, so flex-between won’t work properly. Any ideas how to do it? Here is .. Read more I have a simple Laravel 8 store front, I also added Breeze AUTH to remove some of the manual tasks that I would usually have to make. Everything else works well except the redirect. After login it should completely redirect you to the previous page, which it does, in a way kind of. It doesn’t .. Read more In my program, there are currently two models that have authentication and needs email verification. I’ve completed the authentication however I am now trying to complete the email verification process and failing hard. My one model called users need to be verified without having to sign in to the backend. This I have achieved by .. Read more I wanted to install Laravel Breeze using Composer but after running: composer require laravel/breeze –dev. I got an error as (Installation failed, reverting ./composer.json and ./composer.lock to their original content) I thought after running: composer update the problem will be solved but now the problem seem to have been resolve but all my code in .. Read more I am trying to install Laravel breeze but having this error:$ composer require laravel/breeze –dev Using version ^1.2 for laravel/breeze ./composer.json has been updated Running composer update laravel/breeze Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 – laravel/breeze[v1.2.0, …, 1.x-dev] ..

Hye laravel lovers, I already install the laravel and also install the laravel breeze, but my email password reset link button did not work. This error shown below:- Swift_TransportException Connection could not be established with host mailhog :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution https://homestead.test/forgot-password Sourc..

I installed a fresh laravel application using version 7.30.4. When I tried to install laravel breeze, using command composer require laravel/breeze –dev, it gives me this error. [InvalidArgumentException] Package laravel/breeze has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version My current version of PHP is 7.2.19 Sourc..

I am starting to build a web application using Laravel 8. I am now trying to install the authentication in my application. I am trying to use Breeze and inertia. But it is not working as expected. This is how I installed it. After I installed the Laravel, I run the following commands php artisan ..

Hi I am fairly new to Laravel framework. I am trying to create a separate controller replicating the registeredusercontroller.php in laravel breeze to have a function for admin user to be able to add new users. But I am having trouble with auto login and as soon as I add a new user it automatically ..

I’m new to Laravel Breeze and tailwind. After successfully installed Laravel Breeze and looking at /login page source, I couldn’t match the source code and actual page source and would like to know what’s going on. In app.blade.php or guest.blade.app there are the following lines. <!– Styles –> <link rel="stylesheet" href="{{ asset(‘css/app.css’) }}"> <!– Scripts ..