Skip to content

Commit a75744b

Browse files
committed
updated Read Me and removed unused classed
1 parent 5abe1db commit a75744b

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

README.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,43 @@
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
1243
1. Laravel Shortcode [webwizo](hhttps://github.com/webwizo/laravel-shortcodes)
1344
3. Laravel Framework by [Taylor Otwell](https://github.com/laravel/laravel)

src/BlockBuilderServiceProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
namespace Ntuple\BlockBuilder;
44

5-
use Webwizo\Shortcodes\View\Factory;
65
use Illuminate\Support\ServiceProvider;
7-
use Webwizo\Shortcodes\Compilers\ShortcodeCompiler;
8-
use Webwizo\Shortcodes\Shortcode;
96

107
class BlockBuilderServiceProvider extends ServiceProvider
118
{

0 commit comments

Comments
 (0)