When I use Laravel development server (php artisan serve) all is working but when I want to use xampp server I get error 404 in laravel auth login and register pages
I use href="{{ asset('css/app.css') }}"
When I use 127.0.0.1:8000/login
all is working:
But when I use xampp server, for example blog.test/login
, it is not working:
in laravel 6 and after version you must install ui . run below code in artisan
composer require laravel/ui --dev
php artisan ui bootstrap
php artisan ui bootstrap --auth
npm install
npm run dev
用:
{{asset('assets_file.css')}}
I think your css file link is not properly written
use <a href = "{{asset('//your public path location')}}" />
php artisan sweetalert:publish
Check your path and folder exist on location ie check for css
and js
files as below, if you configured as public folder then in index.php file root must be
$app = require_once __DIR__.'/../bootstrap/app.php';
check files are present physically on public folder or if you configure without public folder as below,
$app = require_once __DIR__.'/bootstrap/app.php';
check your files exist on root ( files css
and js
files ) not in public folder and most importantly check physically files are uploaded.
hope this will work for you!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.