Skip to content

ntuple/laravel-blockbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Block Builder

Laravel Block Builder, Easy way to create a static block from SQL !

Laravel Block Builder. Got inspired from CrudBooster's StaticBlock Feature.

Features

  • Easy to Use Shortcode
  • Use of SQL Query to Create Blocks
  • Many more...

Install

Via Composer

composer require ntuple/laravel-blockbuilder:0.1.0

Publish the Configuration

Publish assets

php artisan vendor:publish --provider=Ntuple\BlockBuilder\BlockBuilderServiceProvider

Usages

Enable ShortCode

return view('view')->withShortcodes();

Add to Layout Blade

Add following to HEAD section of your Layout Blade

@include('blockbuilder::includes.pagkages')

ShortCode for Blocks

[block type='table']
    {
        "label": ["name", "email"],
        "sql": "select * from users;"
    }
[/block]

Credits

  1. Laravel Shortcode webwizo
  2. Laravel Framework by Taylor Otwell