sagsoz06 / block
A module to create small blocks of content to display anywhere on the site.
Installs: 146
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:asgard-module
Requires
- php: >=5.6.4
- composer/installers: ~1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.11
- fzaninotto/faker: ~1.5
- orchestra/testbench: 3.3.*
- phpro/grumphp: ^0.9.1
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-12-14 11:17:30 UTC
README
Installation
You can install the Block module with composer:
$ composer require asgardcms/block
Then run the following command to install the database tables:
$ php artisan module:migrate Block
In the backend GUI, go to Users > Roles > Admin. Then the permissions tab, and give the Admin role the permissions for the block module.
Documentation
This is a very simple module to create re-usable blocks of content. The blocks of content are created in the administration. You give it a name and a content.
After this, you'll be able to get the content of a block with the following code:
{!! Block::get('block-name') !!}
Resources
Info
All AsgardCMS modules respect Semantic Versioning.