This project is a starter-kit-ish for projects that intend to use Laravel + Svelte + InertiaJS, thus, creating a unified workflow for Javascript and PHP.
git clone https://github.com/Visnicio/laravel-svelte-starter.git
cd laravel-svelte-starter
composer install
npm install
php artisan serve
npm run dev
No need to worry, the projects's main route ('/') is already configured with inertia and getting data from a endpoint, so you can follow the same logic for your own routes.
If you have questions about the file structure and how it works, its almost indentical to Laravel with you already worked with it in the MVC pattern.
resources/js/app.js
- Lays the configuration for Inertia on the ClientSide.resources/js/Pages/*
- Here it will contain all the pages for your project.If your completely new to Laravel, you can learn more on the documentation.