Home  >  Article  >  PHP Framework  >  Solve the problem that laravel8.x user authentication vite command does not take effect

Solve the problem that laravel8.x user authentication vite command does not take effect

藏色散人
藏色散人forward
2023-01-13 10:23:461726browse

This article brings you relevant knowledge about laravel8.x. It mainly introduces the problem that laravel8.x user authentication vite command cannot take effect. Interested friends should take a look at it. I hope it will be helpful to everyone. .

Solve the problem that laravel8.x user authentication vite command does not take effect

laravel 8.* The user authentication vite command does not take effect

In laravel 8.*, enable user authentication according to the documentation

composer require laravel/jetstream 
php artisan jetstream:install livewire

The page @vite encountered does not work. The page performance is css and js is not loaded.

The following line of instructions

@vite (['resources/css/app.css', 'resources/js/app.js'])

is displayed directly in the form of text without parsing.

Solution:

composer require laravel/breeze:1.9.4
php artisan breeze:install

[Related recommendations: laravel video tutorial]

The above is the detailed content of Solve the problem that laravel8.x user authentication vite command does not take effect. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete