PHPackages                             flyo/nitro-laravel - 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. flyo/nitro-laravel

ActiveLibrary[Framework](/categories/framework)

flyo/nitro-laravel
==================

Flyo Nitro Laravel Framework Module

2.1(2mo ago)12.1k—10%MITPHPPHP ^8.3

Since Sep 12Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/flyocloud/nitro-laravel)[ Packagist](https://packagist.org/packages/flyo/nitro-laravel)[ RSS](/packages/flyo-nitro-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (25)Used By (0)

Flyo Nitro Laravel Framework Module
===================================

[](#flyo-nitro-laravel-framework-module)

```
composer require flyo/nitro-laravel
```

publish the config

```
artisan vendor:publish
```

Adjust the token in `config/flyo.php`

> Ensure to remove the default routes in `routes/web.php` which could conflict with the cms routes.

Views
-----

[](#views)

Add/Adjust the `cms.blade.php` view file in `resources/views`, this is where the cms page loader starts:

```

```

Now all component block views are looked up in `ressources/views/flyo`, for example if you have a Flyo Nitro component block with name Text the view file would be `ressources/views/flyo/Text.blade.php` utilizing the following variables:

> You can adjust the views namespace in the config file using `views_namespace` key.

```

```

To make the block editable you must place the Blade directive `@editable($block)` on the block's root HTML element. This ensures the Flyo editor can correctly detect the block and display the edit icon next to that element when the page is opened in the editor. In short: put `@editable($block)` on the outermost element of the block so clicking the icon opens this block for editing.

```
