Front end scalfolding with css and js with laravel ui package

Install laravel/ui package

composer require laravel/ui

Run this command

php artisan ui bootstrap
npm install
npm run dev

Add CSS and js link at your views template

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="{{ asset("css/app.css") }}">
</head>
<body>
    <h1>Welcome</h1>
</body>
</html>
<script src="{{ asset("js/app.js") }}"></script>
© 2016 - 2022, All Rights are Reserved.