ntuple / laravel-blockbuilder
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Type:project
Requires
- php: >=5.6
- webwizo/laravel-shortcodes: 1.0.*
This package is auto-updated.
Last update: 2025-01-04 16:57:24 UTC
README
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
- Laravel Shortcode webwizo
- Laravel Framework by Taylor Otwell