Skip to main content
Laravel User Model Laravel

Laravel User Model

A boilerplate for the User model, expected to be reused in future projects. /*------------------------------------------------ Getters and Setters Access Manipulation --------------------------------------------------*/ /** * Trim email, otherwise…
priyankmaniar
December 10, 2021
Larecipe LaravelLarecipe

Larecipe

How to change the default font used for the larecipe? Head to public/vendor/binarytorch/larecipe/assets/css/app.css look up for font-family:sans Replace with: font-family:"Ubuntu", sans-serif
priyankmaniar
June 23, 2021
JetStream Fortify check if the user belongs to a specific role or is active while logging in Fortify

JetStream Fortify check if the user belongs to a specific role or is active while logging in

This guide is helpful. // JetstreamServiceProvider.php Fortify::authenticateUsing(function (Request $request) { $user = User::where('email', $request->email)->whereFileNumber($request->fileNumber)->userActive()->role('Debtor')->first(); if ($user && Hash::check($request->password, $user->password)) { $userLoginDetailObj = new UserLoginDetail(); $userLoginDetailObj->loginDetails($user->id);…
priyankmaniar
April 4, 2021