noistudio / admin-blocks-mongodb
Laravel Blocks system for integrate in admin panel ( MongodbVersion)
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- laravel/framework: ^8.12|^9.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-29 01:14:32 UTC
README
Blocks system for laravel dev-version (this is mongodb version)
- install package composer require noistudio/admin-blocks-mongodb
- publish files from packages php artisan vendor:publish --tag=admin_blocks
- run migrates php artisan migrate
- setup config /config/admin_blocks
Options for running
Option 1 blade directive
Option 2 dynamic run from text
If you want replace all special tags in text, You can use trait
`<?php
namespace App\Http\Controllers\web;
use AdminBlocks\Traits\HasBlockRender;
class HomeController { use HasBlockRender; function index(){
$data=array();
$data['test']="@load_position('test_pos')";
return $this->render("welcome",$data);
} } `