Download the PHP package ianrothmann/rocket-laravel-framework without Composer
On this page you can find all versions of the php package ianrothmann/rocket-laravel-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ianrothmann/rocket-laravel-framework
More information about ianrothmann/rocket-laravel-framework
Files in ianrothmann/rocket-laravel-framework
Package rocket-laravel-framework
Short Description RocketFramework Laravel Helpers
License Apache-2.0
Informations about the package rocket-laravel-framework
RocketLaravelAppFramework
RocketFramework for Vue Laravel Helpers.
Installation
In config/app.php
Service provider
Facades
Publish the config
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
Groups are also possible. Specify ->group
. This returns the item. Then specify ->subMenu()
, and now you can chain the items to the submenu. You need to start with Rocket::menu('main')
again to add main menu items.
Prepending
Sometimes one would like to prepend items (especially when modifying middleware defined menus from the controller. All item functions can start with push
to prepend.
Front-end
This package integrates with VueBridge and makes the menu available in $store.state.server.rocketMenus
, for use with rocket-framework-menu
in RocketVueAppFramework
:
Breadcrumbs
Use Rocket::breadcrumbs()
, to access the BreadcrumbsService:
You may either use:
to show a menu icon with the items in a menu
or
To display a classic breadcrumbs bar. Everything is only implemented in Vuetify. You cannot use both, be sure to only use one of them on a page.
in config/rocketframework.php
, you may set
On any page you may call: Rocket::breadcrumbs()->show()
or Rocket::breadcrumbs()->hide()
to bread away from the default behaviour. You can also set a namespace for the breadcrumbs to limit them on certain parts/sessions on the system. For instance: Rocket::breadcrumbs()->setBreadcrumbsNamespace($clientid)
Edit in place language
This enables you to use blade syntax @editabletext(language_line_code)
or @editablehtml(language_line_code)
. If edit mode is active, a user will be able to edit the text in place. This is useful for public facing websites etc.
- Use
Rocket::activateLanguageEdit()
orRocket::deactivateLanguageEdit()
to enter edit mode. - There are language configurations in app/config/rocketframework.php - mostly for the update routing. The defaults should do in most cases. - but remember the middleware for route protection. The default is [], but is should have auth and rights.
- It used the spatie/laravel-translation-loader package to store it in a
language_lines
table, make sure the table exists - for more info look at their readme. You have to install the package in the project and override the service providers as in their readme.
All versions of rocket-laravel-framework with dependencies
laravel/framework Version >=5.4.0
spatie/laravel-translation-loader Version ^2.0
ianrothmann/laravel-vue-bridge Version *