https://github.com/ntuple/laravel-blockbuilder
Laravel Block Builder using Shortcode on View
https://github.com/ntuple/laravel-blockbuilder
laravel laravel-5-package laravel-block shortcode static-blocks
Last synced: 5 days ago
JSON representation
Laravel Block Builder using Shortcode on View
- Host: GitHub
- URL: https://github.com/ntuple/laravel-blockbuilder
- Owner: ntuple
- Created: 2018-12-05T15:55:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T03:30:04.000Z (about 6 years ago)
- Last Synced: 2025-07-21T12:33:43.950Z (6 months ago)
- Topics: laravel, laravel-5-package, laravel-block, shortcode, static-blocks
- Language: HTML
- Homepage:
- Size: 378 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
php artisan vendor:publish --provider=Ntuple\BlockBuilder\BlockBuilderServiceProvider
```
## Usages
#### Enable ShortCode
```php
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](https://github.com/webwizo/laravel-shortcodes)
3. Laravel Framework by [Taylor Otwell](https://github.com/laravel/laravel)