tjslash/cto-page-manager

1.0.2 2022-12-16 21:55 UTC

This package is auto-updated.

Last update: 2024-10-17 02:26:56 UTC


README

Latest Version on Packagist Total Downloads The Whole Fruit Manifesto

This package Page CRUD Manager functionality for projects that use the Backpack for Laravel administration panel.

Screenshots

screencapture-127-0-0-1-8000-admin-page-2022-12-16-08_36_17 screencapture-127-0-0-1-8000-admin-page-2-edit-2022-12-16-08_36_30 screencapture-127-0-0-1-8000-admin-page-2-edit-2022-12-16-08_37_00

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.