PhpDev.App
TitasGailius/laravel-moonlight

TitasGailius/laravel-moonlight

Stars: 143

Forks: 10

Pull Requests: 13

Issues: 6

Watchers: 3

Last Updated: 2023-01-03 08:46:04

Batteries included Laravel preset based on InertiaJS, VueJS and TailwindCSS stack.

License:

Languages: PHP, JavaScript, Vue, SCSS, Blade

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.

Laravel Moonlight


Stack

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

GitHub Logo

GitHub Logo

GitHub Logo

GitHub Logo

GitHub Logo

GitHub Logo

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