windfallinc/woodpecker 问题修复 & 功能扩展

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

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

windfallinc/woodpecker

Composer 安装命令:

composer require windfallinc/woodpecker

包简介

This is a package for things and stuff

README 文档

README

alt text

Woodpecker

Content Management System for Windfall laravel applications.

Automatically creates admin panel, databases, form logic (with invisible captcha), and page logic.

Installation

Require this package with composer:

composer require windfallinc/woodpecker

Package auto discovers.

Publish woodpecker assets, and migrate databases:

php artisan vendor:publish --tag=woodpecker --force

php artisan migrate

If you have migration issues, see https://laravel-news.com/laravel-5-4-key-too-long-error.

Boom! Good to go!

Example templates included in views/examples. Optional Helper functions to include in composer.json:

"autoload": {
"files": [
            "app/Http/Controllers/woodpecker-helpers.php"
        ],

If you are using Orca and Woodpecker, ensure your laravel mix file looks similar to:

const mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/js/app.js', 'public/js')
   .less('resources/assets/less/app.less', 'public/css')
   .less('resources/assets/less//woodpecker/admin.less', 'public/css/woodpecker');

Setup .env captcha to enable forms

NOCAPTCHA_SECRET=<Your Secret Key>
NOCAPTCHA_SITEKEY=<Your Site Key>

Customization

Creating a new template

Create template in views/templates/example-slug.blade.php

Add the newly created template to the database table 'templates'

The template will now appear in the backend, becoming available for any datatypes to use.

Featured Image

$page->featimg()

Title

$page->title

Content

@include('dashboard.includes.body')

Any Custom Fields

$page->get_the('field name')

Meta Desc

$page->metadesc

Meta Keywords

$page->keywords

Creating a new component

Views->components house all front end component code.

Views->dashboard->components house all backend component code.

Within the database, add a new 'component' and set its 'type' to template.

Edit Woodpeckers admin.less file to include your component css. For example: @import "../components/homepage-slider.less";

Custom Routes

Any route in the web.php file can override Woodpeckers routes. Ensure they are named and lead to your own custom controller

Route::get('/anything', 'WebsiteController@index')->name('anything');

Updating

After your composer update, to finalize your upgrade

php artisan vendor:publish --tag=woodpeckerupdate --force

Supports

Laravel 5.5 and up.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固