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 2
2
3
3
> Laravel Block Builder, Easy way to create a static block from SQL !
4
4
5
- Laravel Block Builder. Got inspired from CrudBooster's StaticBlock Feature. Integreted
5
+ Laravel Block Builder. Got inspired from CrudBooster's StaticBlock Feature.
6
6
7
7
## Features
8
- - Test
8
+ - Easy to Use Shortcode
9
+ - Use of SQL Query to Create Blocks
9
10
- Many more...
10
11
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
+
11
42
## Credits
12
43
1 . Laravel Shortcode [ webwizo] ( hhttps://github.com/webwizo/laravel-shortcodes )
13
44
3 . Laravel Framework by [ Taylor Otwell] ( https://github.com/laravel/laravel )
Original file line number Diff line number Diff line change 2
2
3
3
namespace Ntuple \BlockBuilder ;
4
4
5
- use Webwizo \Shortcodes \View \Factory ;
6
5
use Illuminate \Support \ServiceProvider ;
7
- use Webwizo \Shortcodes \Compilers \ShortcodeCompiler ;
8
- use Webwizo \Shortcodes \Shortcode ;
9
6
10
7
class BlockBuilderServiceProvider extends ServiceProvider
11
8
{
You can’t perform that action at this time.
0 commit comments