File tree Expand file tree Collapse file tree 2 files changed +33
-5
lines changed Expand file tree Collapse file tree 2 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 22
33> Laravel Block Builder, Easy way to create a static block from SQL !
44
5- Laravel Block Builder. Got inspired from CrudBooster's StaticBlock Feature. Integreted
5+ Laravel Block Builder. Got inspired from CrudBooster's StaticBlock Feature.
66
77## Features
8- - Test
8+ - Easy to Use Shortcode
9+ - Use of SQL Query to Create Blocks
910- Many more...
1011
12+ ## Install
13+ Via Composer
14+ ```
15+ composer require ntuple/laravel-blockbuilder:dev-master
16+ ```
17+
18+ #### Publish the Configuration
19+ Publish assets
20+ ``` php
21+ php artisan vendor:publish --provider=Ntuple\Ntuple\BlockBuilder\Ntuple\BlockBuilderServiceProvider
22+ ```
23+
24+ ## Usages
25+
26+ #### Enable ShortCode
27+
28+ ``` php
29+ return view('view')->withShortcodes();
30+ ```
31+
32+ #### ShortCode for Blocks
33+ ```
34+ [block type='table']
35+ {
36+ "label": ["name", "email"],
37+ "sql": "select * from users;"
38+ }
39+ [/block]
40+ ```
41+
1142## Credits
12431 . Laravel Shortcode [ webwizo] ( hhttps://github.com/webwizo/laravel-shortcodes )
13443 . Laravel Framework by [ Taylor Otwell] ( https://github.com/laravel/laravel )
Original file line number Diff line number Diff line change 22
33namespace Ntuple \BlockBuilder ;
44
5- use Webwizo \Shortcodes \View \Factory ;
65use Illuminate \Support \ServiceProvider ;
7- use Webwizo \Shortcodes \Compilers \ShortcodeCompiler ;
8- use Webwizo \Shortcodes \Shortcode ;
96
107class BlockBuilderServiceProvider extends ServiceProvider
118{
You can’t perform that action at this time.
0 commit comments