tjslash / cto-page-manager
Cto Page CRUD
Requires
- backpack/crud: ^5.4
- backpack/permissionmanager: ^6.0
- cviebrock/eloquent-sluggable: ^9.0
- illuminate/support: ~8|~9
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
README
This package Page CRUD Manager functionality for projects that use the Backpack for Laravel administration panel.
Screenshots
Installation
Composer:
composer require tjslash/cto-page-manager
Put link for administration sidebar:
php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{ backpack_url('page') }}'><i class='nav-icon la la-question'></i> {{ __('tjslash::cto-page-manager.pages') }}</a></li>"
Put web route for show a pages:
use \Tjslash\CtoPageManager\Http\Controllers\PageController; Route::get('{page}', [PageController::class, 'index'])->name('page');
Usage
Page CRUD Manager done! Use it simple.
Open Page CRUD Manager at the administration panel:
http://127.0.0.1:8000/admin/page
Configuration
Custom templates
You can use custom templates for view page.
Create views in resources:
mkdir resources/views/page touch resources/views/page/about-us.blade.php
Edit the configuration file (config/cto-page-manager.php)
... 'views' => [ 'page.about' => 'About us', ], ...
Create/edit a page at the administration panel and set template for page.
Change log
Changes are documented here on Github. Please see the Releases tab.
Testing
composer test
Contributing
Please see contributing.md for a todolist and howtos.
Security
If you discover any security related issues, please email vakylenkox@gmail.com instead of using the issue tracker.
Credits
License
This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.
However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.