pepa-linha/nette-inertia

The Nette adapter for Inertia.js.
193 5
Install
composer require pepa-linha/nette-inertia
Latest Version:v1.0.1
PHP:>=7.4
License:MIT
Last Updated:Jan 24, 2021
Links: GitHub  ·  Packagist
Maintainer: pepa-linha

Nette Inertia

The Nette adapter for Inertia.js.

Installation

composer require pepa-linha/nette-inertia

Usage

Extends your presenter

class BasePresenter extends InertiaPresenter

and then use $this->inertia(...) method in your presenters to send page object response.

By default Inertia page component name is the same like presenter name. You can change it by override getInertiaComponentName method.

Set the default state of the Inertia application with $inertiaPageObject in template:

<div id="app" data-page='{$inertiaPageObject|noescape}'></div>

Related Packages

codemystify/laravel-types-generator

Simplified TypeScript types generator for Laravel applications with developer-de...

261 3
unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

768,162 375
recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

285,230 379
spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

932,995 620
proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rul...

2,389,968 1,141