jetstream

How do I authenticate a user in Laravel 8 Jetstream only if his status is active?

巧了我就是萌 提交于 2021-02-05 06:12:05
问题 I am building a Laravel 8 application and have successfully implemented authentication. Now I want to check if a user's status is active before logging him in. I have added a field in the users table username varchar password varchar .... status tinyint(1) ... I am using JetStream and Fortify Thank You 回答1: You can customize user authentication from app\Providers\JetStreamServiceProvider.php , on boot method : use App\Models\User; use Illuminate\Http\Request; use Laravel\Fortify\Fortify;

Laravel 8 JetStream Bootstrap 4

老子叫甜甜 提交于 2021-01-29 19:57:39
问题 I am using the jetstream UI with Laravel 8 and I have checked an I am aware that the Laravel team has no plans to make a Bootstrap version of the UI but I'm only comfortable with bootstrap and can't use a CDN because I need to make changes to BS4. Is it possible to install BS4 and SASS on a Laravel project without affecting the Laravel JetStream UI. 回答1: By default Laravel Jetstream is powered by TailwindCSS. All defaults pages is made by this CSS framework but you can easily add Bootstrap to

Laravel LiveWire Pagination issue

岁酱吖の 提交于 2021-01-29 15:35:39
问题 I am new to LiveWire and trying to build simple app with Laravel , jetstream and livewire My application get data from DB and show in Table with Pagination. every thing is working fine but issue is when i click on any page I got URI '?page=2' I dont want to see this URI in Url my blade is also simple as bellow <x-app-layout> <x-slot name="header"> </x-slot> <div class="py-2"> <div class="mx-auto sm:px-2 lg:px-2"> <div class="bg-white overflow-hidden shadow-xl sm:rounded-lg"> <div class="flex