2017 © Pedro Peláez
 

library block

Block for your website

image

devfactory/block

Block for your website

  • Wednesday, February 4, 2015
  • by devfactory
  • Repository
  • 4 Watchers
  • 4 Stars
  • 164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Block

This package allows you to create block and choose the position of the block where you need it., (*1)

Installation

Using Composer to install the package., (*2)

composer require devfactory/block

Then in your app/config/app.php file register the following service providers: Devfactory\Block\BlockServiceProvider::class,, (*3)

// config/app.php

'providers' => [
    ...
    Devfactory\Block\BlockServiceProvider::class,
],

'aliases' => [
    ...
    'Block' => Devfactory\Block\Facades\Block::class,
],

If you want you can publish the config, views and migration files if you want to change them, (*4)

php artisan vendor:publish --provider="Devfactory\Block\BlockServiceProvider" --tag="config"
php artisan vendor:publish --provider="Devfactory\Block\BlockServiceProvider" --tag="views"
php artisan vendor:publish --provider="Devfactory\Block\BlockServiceProvider" --tag="migrations"

Usage

You just need to create a block then you can call the block content with the block facade like this, (*5)

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

The Versions

04/02 2015

2.0.1

2.0.1.0

Block for your website

  Sources   Download

MIT

The Requires

 

laravel laravel 4 block

04/02 2015

2.0.x-dev

2.0.9999999.9999999-dev

Block for your website

  Sources   Download

MIT

The Requires

 

laravel laravel 4 block

04/02 2015

2.0.0

2.0.0.0

Block for your website

  Sources   Download

MIT

The Requires

 

laravel laravel 4 block

24/12 2014

dev-master

9999999-dev

Block for your website

  Sources   Download

The Requires

 

by Greg Marineau