windfallinc / woodpecker
This is a package for things and stuff
Installs: 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: >=7.0.0
- anhskohbo/no-captcha: ^3.0
- intervention/image: ^2.4
- laravel/helpers: ^1.2
- laravel/ui: ^2.0
- dev-master
- 1.145
- 1.143
- 1.142
- 1.141
- 1.140
- 1.134
- 1.133
- 1.132
- 1.129
- 1.128
- 1.127
- 1.126
- 1.125
- 1.124
- 1.123
- 1.122
- 1.121
- 1.120
- 1.119
- 1.118
- 1.117
- 1.116
- 1.115
- 1.114
- 1.113
- 1.112
- 1.111
- 1.110
- 1.109
- 1.108
- 1.107
- 1.106
- 1.105
- 1.104
- 1.103
- 1.102
- 1.101
- 1.100
- 1.099
- 1.098
- 1.096
- 1.095
- 1.094
- 1.093
- 1.092
- 1.091
- 1.090
- 1.089
- 1.088
- 1.087
- 1.086
- 1.085
- 1.084
- 1.083
- 1.082
- 1.081
- 1.080
- 1.077
- 1.076
- 1.075
- 1.074
- 1.073
- 1.072
- 1.071
- 1.08
- 1.07
- 1.06
- 1.05
- 1.04
- 1.03
- 1.02
- 1.01
- 1
- dev-laravel_5.8
This package is not auto-updated.
Last update: 2024-03-19 02:01:50 UTC
README
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.