This package Page CRUD Manager functionality for projects that use the Backpack for Laravel administration panel.
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');
Page CRUD Manager done! Use it simple.
Open Page CRUD Manager at the administration panel:
http://127.0.0.1:8000/admin/page
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.
Changes are documented here on Github. Please see the Releases tab.
composer test
Please see contributing.md for a todolist and howtos.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
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.