Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ntuple/laravel-blockbuilder

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
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

About

Laravel Block Builder using Shortcode on View

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.