ntuple/laravel-blockbuilder

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

Language:HTML

Type:project

0.1.0 2018-12-05 17:47 UTC

This package is auto-updated.

Last update: 2024-05-04 15:27:02 UTC


README

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