Laravel 9 + Vite + Tailwindcss install workflow

composer create-project laravel/laravel sme01
cd sme01

valet link

install Laravel successfully git submit

npm install -D tailwindcss postcss autoprefixer
npm install -D sass
npx tailwindcss init -p

tailwind.config.js add content some things

content: [

'./resources/views/**/*.blade.php',

'./resources/**/*.scss',

'./resources/css/app.scss',

],

app.blade.php add to <head>

@vite('resources/css/app.scss')

install tailwindcss+sass okay. git submit

composer require laravel/jetstream
php artisan jetstream:install livewire

.env file setting the database connect

php artisan migrate 

Jetstream successfully ! git submit

edit the RouteServiceProvider.php and create a /routes/admin.php file

public const HOME = '/';  //changed
protected $namespace = 'App\\Http\\Controllers';   //added 

//add code to boot() for admin panel

Route::middleware('web')

->prefix('admin')

->namespace($this->namespace)

->group(base_path('routes/admin.php'));

add helpers file to composer.json for autoload

"autoload": {
    "files": [  
        "app/helpers.php"   
    ],
    ...
},
composer dump-autoload