DEV Community

Cover image for Why & How to install MoonShine v3
Forward Dev
Forward Dev

Posted on

Why & How to install MoonShine v3

Hello everybody & everyrock!

Prehistory

Today, I want to tell you about the awesome MoonShine framework, not the MoonShine that is MoonShine at grandpa's house in the village πŸŒ™πŸ•οΈπŸΊπŸ”₯ And I want to tell you about the framework, which is based on the principles of Laravel architecture and the principles of the author's view of the code.
Perhaps I will surprise someone, but this framework helped me a lot in routine tasks with CRUD-operations, query filters, fields decorations and many more packages, where you can find them on the plugins page.
βŒ› In total, it has helped me speed up my development time many times over, at least 3-4 months of time savings per year on average. β˜•πŸ“šπŸ‘¨β€πŸŽ“ By the way, while I was studying this tool - wrote 3 small projects πŸŽ―πŸ› οΈπŸ“Š, such as logging for API services, a simple blog and a very complicated case like a freelance exchange with a balance for users. It turns out that the rest of the time, I can spend on my own projects, after my clients' projects with the same workload that I have today as I have had for the last πŸ”Ÿ years πŸš€πŸŒŒ.

So what is this thing? 🌚

MoonShine is a modern admin panel for Laravel applications. Below is a step-by-step guide to installing MoonShine for Laravel.

As you might have guessed under the hood there is a stack time-honored of Tailwindcss, Alpine.js, Laravel

This is an open-source project, the main task of which is to make the admin panel as simple as possible (for junior developers) and at the same time functional and customizable (for experienced ones).
Danil Shchutsky (c)

Dashboard page

Requirements [composer v2+]

"require": {
    "php": "^8.2",
    "laravel/framework": "^10.48",
}
Enter fullscreen mode Exit fullscreen mode

Step 0: Create a New Laravel Project

If you don’t have a Laravel project yet, create one:

composer create-project laravel/laravel my-first-moonshine-project  
cd my-first-moonshine-project
Enter fullscreen mode Exit fullscreen mode

Step 1: Install MoonShine via Composer

Add MoonShine to your project using Composer:

composer require moonshine/moonshine
Enter fullscreen mode Exit fullscreen mode

Step 2: Publish MoonShine skeleton

Run the following command to publish configuration files and assets:

php artisan moonshine:install {--with-options}
Enter fullscreen mode Exit fullscreen mode

You can learn about all supported options in the section Commands of documentation.

Step 3: View awesome result

Up serve like:

php artisan server --port={YOUR_LIKE_PORT}
Enter fullscreen mode Exit fullscreen mode

Don't forget update your new .env file after install laravel 🐱

  • Also you should look into config/moonshine.php or MoonShineServiceProvider.php to understand the entire universe πŸŒŒπŸŒπŸŒ™πŸͺβœ¨,
  • by default route is /admin πŸŒ…πŸŒ²πŸšΆβ€β™€οΈ

Login page

All done, well done! πŸŒˆπŸŽ‰πŸ‘

I hope you also find this reliable tool useful. as I found it for myself. ❀️

Good luck!

Top comments (0)