This is a starter template for building applications using Laravel, InertiaJS, SvelteJS, and Docker (or Laravel Sail).
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Inertia is a new approach to building classic server-driven web apps. We call it the modern monolith. InertiaJS allows you to create fully client-side rendered, single-page apps, without the complexity that comes with modern SPAs. It does this by leveraging existing server-side patterns that you already love.
Inertia has no client-side routing, nor does it require an API. Simply build controllers and page views like you've always done! Inertia works great with any backend framework, but it's fine-tuned for Laravel.
You can learn more at their home page
Svelte is a front-end, open-source JavaScript framework for making interactive webpages. The general concept behind Svelte is similar to pre-existing frameworks like React and Vue in that it enables developers to make web apps. However, Svelte brings several features to the table that provides developers with a unique experience, such as:
Svelte provides a different approach to building web apps than some of the other frameworks covered in this module. While frameworks like React and Vue do the bulk of their work in the user's browser while the app is running, Svelte shifts that work into a compile step that happens only when you build your app, producing highly optimized vanilla JavaScript.
The outcome of this approach is not only smaller application bundles and better performance, but also a developer experience that is more approachable for people that have limited experience of the modern tooling ecosystem.
You can read more at their website or give it a spin at their playground
This template has the following integrated already:
php artisan module:create [ModuleName}
and you are good to gopint.json
and phpcs.xml
files. To lint run the vendor/bin/pint
, vendor/bin/phpcs
and vendor/bin/phpcbf
commands from your terminal at the project root. Or you can use the preconfigured lints via composer lint-check
and composer lint
commands.sail up
to use dockermake start_dev
at project root to use docker-sync).
npm run dev
to set this up). You can edit the configiration for this in package.json's predev script.TELESCOPE_ENABLED=true
To get started, view the Getting Started guide
Thank you for considering contributing to this template! The contribution guide can be found in the here.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.
This template is open-sourced software licensed under the MIT license.