Skip to content

Commit b273a39

Browse files
committed
add laravel/ui
1 parent 8e030a0 commit b273a39

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
"production": "mix --production"
1111
},
1212
"devDependencies": {
13+
"@popperjs/core": "^2.10.2",
1314
"axios": "^0.21",
15+
"bootstrap": "^5.1.3",
1416
"laravel-mix": "^6.0.6",
1517
"lodash": "^4.17.19",
16-
"postcss": "^8.1.14"
18+
"postcss": "^8.1.14",
19+
"resolve-url-loader": "^5.0.0",
20+
"sass": "^1.32.11",
21+
"sass-loader": "^11.0.1"
1722
}
1823
}

resources/js/bootstrap.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
window._ = require('lodash');
22

3+
try {
4+
require('bootstrap');
5+
} catch (e) {}
6+
37
/**
48
* We'll load the axios HTTP library which allows us to easily issue requests
59
* to our Laravel back-end. This library automatically handles sending the

routes/web.php

+4
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
Route::get('/', function () {
1717
return view('welcome');
1818
});
19+
20+
Auth::routes();
21+
22+
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');

webpack.mix.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ const mix = require('laravel-mix');
66
|--------------------------------------------------------------------------
77
|
88
| Mix provides a clean, fluent API for defining some Webpack build steps
9-
| for your Laravel applications. By default, we are compiling the CSS
9+
| for your Laravel application. By default, we are compiling the Sass
1010
| file for the application as well as bundling up all the JS files.
1111
|
1212
*/
1313

1414
mix.js('resources/js/app.js', 'public/js')
15-
.postCss('resources/css/app.css', 'public/css', [
16-
//
17-
]);
15+
.sass('resources/sass/app.scss', 'public/css')
16+
.sourceMaps();

0 commit comments

Comments
 (0)