Awesome
I stand with Ukraine | πΊπ¦ |
---|
Laravel Moonlight
Laravel Moonlight is a carefully crafted Laravel preset for your next SPA application.
Leverage an existing server-side framework to create a fully client-side rendered, single-page application without much of the complexity that comes with a modern SPA.
Stack
- TailwindCSS
- InertiaJS
- VueJS
- Ziggy (Use named routes in your JS)
Installation
Installed using composer:
composer require titasgailius/laravel-moonlight
Usage
Once the package has been installed, you may install the scaffolding using the ui Artisan command:
// Generate basic scaffolding
php artisan ui moonlight
// Include authentication scaffolding
php artisan ui moonlight --auth
Screenshots
Project Structure
project
β - webpack.mix.js
β
ββββresources
β |
β ββββjs
β | β - app.js
β | β - bootstrap.js
β | β
β | ββββcomponents // Global components that are auto-registered.
| | | | - form-input.vue
| | |
β | ββββlayouts
| | | | - app.vue
| | |
β | ββββpages // This is where you put your application pages.
β | β - home.vue
β | β - welcome.vue
β | β
β | ββββauth
β | β - login.vue
β | β - register.vue
β | β - verify.vue
β | β
β | ββββpasswords
β | β - confirm.vue
β | β - email.vue
β | β - reset.vue
β |
β ββββsass
β | | - app.scss
β β
β ββββviews
β β - app.blade.php
|
ββββapp/Providers
| // Here you may register any variables that are shared between pages.
β - InertiaServiceProvider.php