Xampp would have nothing to do with this as it's no different from a independent install of PHP, and mysql, etc.
The question would be do you have laravel setup correctly pointing to public as the document root.
Hello guys! I'm using laravel 8 with inertia and vue. They are having two problems when I put them in xampp. The first mistake is in the mix. If I use in app.blade the mix() shows the following error in the console: 'GET https://192.168.254.74/css/app.css net::ERR_ABORTED 404 (Not Found)' That is, it does not recognize my folder in xampp /folder. To solve this problem I changed the mix() to asset() and it worked with another error. The route in the browser was https://192.168.254.74/bomixsam/bomixsam/login i.e. doubled the project root folder. '/bomixsam/bomixsam/'
my webPack
const mix = require('laravel-mix');
const path = require('path');
mix.webpackConfig({ resolve: { alias: { ziggy: path.resolve('vendor/tightenco/ziggy/dist'), }, }, });
mix.js('resources/js/app.js', 'public/js').vue() .sass('resources/sass/app.scss', 'public/css') .webpackConfig(require('./webpack.config'));
if (mix.inProduction()) { mix.version(); }
my atual app.blade:
<!-- Styles -->
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<link rel="stylesheet" href="{{ asset('css/myStyle.css') }}">
<link rel="stylesheet" href="{{ asset('css/timeline.css') }}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" />
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAxCTIgDEMja1Xda05djDewVM6hZae5zTI"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- Scripts -->
@routes
<script src=" https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment.min.js"></script>
<script src="{{ asset('js/app.js') }}" defer></script>
@inertia
@env ('local')
Sorry for the english, i'm brazilian and i use google translator.
Please or to participate in this conversation.