PHPackages                             estudia/inertia-uno - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. estudia/inertia-uno

ActiveLibrary[Framework](/categories/framework)

estudia/inertia-uno
===================

A Laravel package that provides easy integration of the Inertia.js with the power of Unocss and auto import

v0.0.4.11(2y ago)1111MITPHPPHP ^7.3 || ^8.2

Since May 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/openestudia/inertia-uno)[ Packagist](https://packagist.org/packages/estudia/inertia-uno)[ RSS](/packages/estudia-inertia-uno/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (17)Used By (0)

InertiaUno
==========

[](#inertiauno)

InertiaUno is a fancy Laravel package that provides frontend features and integrates Unocss into your Laravel project. It simplifies the process of installing InertiaJS, adding middleware, installing Lodash, and integrating UNOCSS and VUE Iconify. It also offers commands to publish views, CSS files, JS files, and Vue files.

Installation
------------

[](#installation)

You can install InertiaUno via Composer:

```
composer require estudia/inertia-uno
```

and then you can install InertiaUno and set up its frontend features, run the following command:

```
php artisan inertia-uno:install
```

This command will guide you through a series of prompts to install InertiaJS, add middleware, install Lodash, UNOCSS, VUE Iconify, and publish various files. You can choose which features to install based on your project requirements.

Implementing InertiaUno in Laravel
----------------------------------

[](#implementing-inertiauno-in-laravel)

To demonstrate how to implement InertiaUno in a Laravel project, follow these steps:

1. Create a new controller, let's call it `TestController`, by running the following command:

    ```
    php artisan make:controller TestController
    ```
2. Open the TestController file in your preferred code editor and update the \_\_invoke method to render an Inertia view. Here's an example:

    ```
