rainbow1997/testback 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rainbow1997/testback

最新稳定版本:1.0.9

Composer 安装命令:

composer require rainbow1997/testback

包简介

A test package for using backpack addons

README 文档

README

Latest Version on Packagist Total Downloads The Whole Fruit Manifesto

This package provides articles functionality for projects that use the Backpack for Laravel administration panel.

More exactly, it adds Articles and Categories so that you can easily do content managing.

screen.png

Installation

Via Composer

composer require rainbow1997/testback --prefer-source
php artisan migrate

Usage

Notice: You have to follow these operations:

After installation you should add these lines into your resources/vendor/backpack/base/inc/sidebar_content.blade.php file. If you don't have it you should copy it from vendor/backpack/crud/src/resources/views/base/inc/sidebar_content like:

cd /path/to/your/laravel
cp ./vendor/backpack/crud/src/resources/views/base/inc/sidebar_content.blade.php ./resources/views/vendor/backpack/base/inc/sidebar_content.blade.php

codes you should add :

            <li class="nav-item"><a class="nav-link" href="{{ backpack_url('article') }}"><i class="nav-icon la la-magic"></i> Articles</a></li>
            <li class="nav-item"><a class="nav-link" href="{{ backpack_url('category') }}"><i class="nav-icon la la-magic"></i> Categories</a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('comment') }}"><i class="nav-icon la la-magic"></i> Comments</a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('elfinder') }}"><i class="nav-icon la la-files-o"></i> <span>{{ trans('backpack::crud.file_manager') }}</span></a></li>

After install the package you can show your managing part in backpack admin panel.

Overwriting

If you need to change the field in any way, you can easily publish the file to your app, and modify that file any way you want. But please keep in mind that you will not be getting any updates.

Step 1. Copy-paste the blade file to your directory:

# create the fields directory if it's not already there
mkdir -p resources/views/vendor/backpack/crud/fields

# copy the blade file inside the folder we created above
cp -i vendor/rainbow1997/testback/src/resources/views/fields/field_name.blade.php resources/views/vendor/backpack/crud/fields/field_name.blade.php

Step 2. Remove the vendor namespace wherever you've used the field:

$this->crud->addField([
    'name' => 'agreed',
    'type' => 'toggle',
    'label' => 'I agree to the terms and conditions',
-   'view_namespace' => 'rainbow1997.testback::fields'
]);

Step 3. Uninstall this package. Since it only provides one file, and you're no longer using that file, it makes no sense to have the package installed:

composer remove rainbow1997/testback

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 m.jamali@dornica.net 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.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固