Block for your website
198
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-04-29 15:04:28
Package Statistics
Total Downloads: 198
Monthly Downloads: 0
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') }}