netsells / chain-an-able
This package provides simple to use chainable HTML builder with easy integration into any platform or cms.
This package is auto-updated.
Last update: 2024-11-08 08:27:04 UTC
README
This package provides simple to use chainable HTML builder with easy integration into any platform or cms.
Currently a Work in progress
This is currently only compatible with Laravel 5.3 and php7.
Usage
{!! $karoway->text('header.title')->wrap('h1.title') !!}
{!! $karoway->image('header.image')->alt('This is the hero image')->classes('image col-md-12') !!}
Installation
To install just require the package through composer.
composer require netsells/chain-an-able dev-master
publish the config file that is required to run.
php artisan vendor:publish --provider='Netsells\Karoway\KarowayServiceProvider'
Settings
These are the column names of the table that stores the attributes for the pages.
'database' => [
'key_field' => 'key',
'value_field' => 'value',
],
These are the Model in which your Pages are stored and the relationship on that model which returns said page's attributes.
'models' => [
'page' => [
'model' => Page::class,
'relation' => 'properties',
]
]