Automatic Installation
A fresh Laravel application is an ideal way to get started with Splade. The package provides a convenient Artisan command, which installs Tailwind CSS 3.0 and Vue 3.0 on the frontend. On the backend, it installs a Route Middleware, an Exception Handler, and it prepares a default view and its route.
laravel new example-app cd example-app composer require protonemedia/laravel-splade php artisan splade:install
The splade:install
command will also build the frontend assets. Just like regular Laravel applications, you may run the Vite development server:
npm run dev