Block for your website
199
5
5
Package Data
Maintainer Username: devfactory
Maintainer Contact: greg.marineau@devfactory.ch (Greg Marineau)
Package Create Date: 2014-12-22
Package Last Update: 2021-11-18
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-18 03:03:51
Package Statistics
Total Downloads: 199
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 5
Total Watchers: 5
Total Forks: 0
Total Open Issues: 0

#Block

This package allows you to create block and choose the position of the block where you need it.

Installation

Using Composer, edit your composer.json file to require devfactory/block.

"require": {
  "devfactory/block": "dev-master"
}

Then from the terminal run

composer update

Then in your app/config/app.php file register the following service providers:

'Devfactory\Block\BlockServiceProvider',

And the Facade:

'Block'      => 'Devfactory\Block\Facades\BlockFacade',

If you want you can publish the config files if you want to change them

php artisan config:publish devfactory/block

Run the migration to create the DB table:

php artisan migrate --package=devfactory/block

Usage

You just need to create a block then you can call the block content with the block facade like this

{{ Block::get('block_title') }}