Download the PHP package cubesystems/leaf without Composer
On this page you can find all versions of the php package cubesystems/leaf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cubesystems/leaf
More information about cubesystems/leaf
Files in cubesystems/leaf
Informations about the package leaf
Installation
Create new Laravel project
Go to project root
Require Arbory package
Fill in database info
Run installer and follow instructions
That's it!
Usage
Registering new pages
Registering new admin modules
Working with nodes
The node repository is used to ensure that the website only displays active nodes to the user
Validation
Validation rules can be attached to any field, like so
Validating translations
Custom validators
- arbory_require_one_localized - at least one translation exists for this field
- arbory_file_required - file has been uploaded or is being passed in request
Fields
Object Relation
Create a relation to another model
To limit the amount of relations the user can select a third argument can be passed. Relation fields limited to a single model will be rendered more compactly.
An optional depth parameter can be passed (automatically set for the node relation) which adds visual nesting to the field items
Items can be grouped by an attribute
Settings
Register a setting (with optional nesting) and retrieve it
Defining a field type
File settings
Translatable settings
Generate admin User
Contributing
To submit SCSS/Js changes you must rebuild dist
directory containing compiled assets. Run npm run prod
to do that.
Coding style
Use PSR-1/2
JS
We use airbnb
coding style for both JS and SASS (links below).
To install the built-in inspections for PHPStorm, follow these instructions: https://www.themarketingtechnologist.co/how-to-get-airbnbs-javascript-code-style-working-in-webstorm/
Note!
When specifying JSCS package in the configuration window, it has to be installed locally (within the project). Global installation will not work (PHPStorm installs packages globally).
Customization
Rules can be modified either in separate files (.jscsrc
or .jscs.json
in project's root directory)
or project's package.json
file (jscsConfig
section).
Links:
- JS - https://github.com/airbnb/javascript
- CSS / SASS - https://github.com/airbnb/css
All versions of leaf with dependencies
ext-json Version *
laravel/framework Version ^11.0
doctrine/dbal Version ^3.8
baum/baum Version 3.x-dev
astrotomic/laravel-translatable Version ^11.6
arbory/translation Version ^2
cartalyst/sentinel Version 8.x-dev
spatie/laravel-glide Version ^3.8
spatie/laravel-sluggable Version ^3.6
laragear/two-factor Version ^2.0
maatwebsite/excel Version ^3.1
unisharp/laravel-filemanager Version ^2.9