Download the PHP package ianrothmann/inertia-laravel-app-service without Composer
On this page you can find all versions of the php package ianrothmann/inertia-laravel-app-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ianrothmann/inertia-laravel-app-service
More information about ianrothmann/inertia-laravel-app-service
Files in ianrothmann/inertia-laravel-app-service
Package inertia-laravel-app-service
Short Description RocketFramework Inertia Laravel Helpers
License Apache-2.0
Informations about the package inertia-laravel-app-service
Rocket Inertia and Laravel App Framework Service
RocketFramework for Inertia and Laravel.
Installation
In config/app.php (if it does not auto-configure)
Service provider
Facades
Publish the config
Configuration
In the boot
method of AppServiceProvider.php
:
Menus
Menus can be specified in middleware, but can also be modified in any controller before passing the view.
Usage
You can give the menu a name, for instance "main", and then chain the items. The icon is optional. If you need a custom item, you can use ->custom
Prepending
Sometimes one would like to prepend items (especially when modifying middleware defined menus from the controller. All item functions can start with prepend
to prepend.
Helpers
For brevity, we registered iview()
which is the same as Inertia::render()
.
You can also use page_title('Page title here',$addTobreadcrumbs=true)
to set the page title and breadcrumbs.
Front-end
Docs coming soon
Breadcrumbs
Docs coming soon
All versions of inertia-laravel-app-service with dependencies
laravel/framework Version >=8.0.0
tightenco/ziggy Version ^1.4
ianrothmann/tab-manager-laravel Version ^1.0