lse123's avatar

auth in Laravel 8.x - what run in cmd line artisan

auth in Laravel 8.x - what run in cmd line artisan : this only: php artisan jetstream:install // is OK or needed additionally and more artisan commands ????

https://laravel.com/docs/8.x/authentication#included-routing

composer require laravel/jetstream

// Install Jetstream with the Livewire stack... php artisan jetstream:install livewire

// Install Jetstream with the Inertia stack... php artisan jetstream:install inertia

https://laravel.com/docs/8.x/authentication#included-views

php artisan jetstream:install

0 likes
16 replies
jlrdw's avatar

After running

composer require laravel/jetstream

Then choose which you want,

php artisan jetstream:install livewire

Or

php artisan jetstream:install inertia
lse123's avatar

Laravel Jetstream

Available Stacks:

Livewire + Blade

Or

Inertia.js + Vue

============================ I prefer Livewire + Blade How structure my Database Tables eg Users etc for Auth to work???

Where to find default Laravel Database Tables for differ apps like other Entities, eg Property Rentals Tables:

Users Properties Discounts Bookings

lse123's avatar

I proceed with

php artisan jetstream:install livewire

what UI Framework used by Laravel 8.x, the Bootstrap 4 ???

1 like
jlrdw's avatar

You can use any css you want. I only used jetstream to scaffold Authentication. But I still use blade views, bootstrap, and a bunch of custom css. You are not forced to use anything you don't want to use.

If you want bootstrap for pagination, it covered in the documentation:

Pagination

Pagination Defaults

Likelihood Of Impact: High

The paginator now uses the Tailwind CSS framework for its default styling. In order to keep using Bootstrap, you should add the following method call to the boot method of your application's AppServiceProvider:

use Illuminate\Pagination\Paginator;

Paginator::useBootstrap();
1 like
lse123's avatar

routes\web.php

Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () { return view('dashboard'); })->name('dashboard');

I can Not access Auth routes I guess I must read these: // Am I correct????

https://laravel.com/docs/8.x/authentication

https://jetstream.laravel.com/1.x/features/authentication.html

This file resources\css\app.css where have to include it? Or included auto?

\Laravel\code\mk-admin2\resources\css\app.css

@import 'tailwindcss/base';

@import 'tailwindcss/components';

@import 'tailwindcss/utilities';

1 like
lse123's avatar

This code with custom tags is tailwindcss???

To use Manually Authenticating Users // needed anything to remove from Laravel 8.x Laravel Jetstream - Livewire + Blade install views, etc...???? https://laravel.com/docs/8.x/authentication#authenticating-users

Manually Authenticating Users

You are not required to use the authentication scaffolding included with Laravel Jetstream. If you choose to not use this scaffolding, you will need to manage user authentication using the Laravel authentication classes directly. Don't worry, it's a cinch!

1 like
lse123's avatar

/ x-guest-layout / / x-jet-authentication-card / / x-slot name="logo" / / x-jet-authentication-card-logo / / x-slot /

1 like
jlrdw's avatar

Yes you can write your own or use the UI version 3, all your choice.

1 like
lse123's avatar

You have any idea how to uninstall jetstream+livewire

php artisan jetstream:install livewire

???

I want basic auth since the user is only one the admin user...

lse123's avatar

I ran the:

php artisan jetstream:install livewire

but, I wanted to remove this command created files and rerun this time - the plain auth generation:

php artisan make:auth

for plain auth, how REMOVE THE EXISTING FILES [php artisan jetstream:install livewire]????

jlrdw's avatar

Remove it from composer and run composer update. But this could have been a new discussion as well since the question is about removing something.

You can also use plain Authentication yet leave those files as well.

Please or to participate in this conversation.