alcodo / alpaca
Simple laravel CMF system
Requires
- alcodo/powerimage: dev-master
- approached/laravel-date-international: dev-master
- artesaos/seotools: ^0.9
- caouecs/laravel-lang: ~3.0
- cocur/slugify: ^3.1
- guzzlehttp/guzzle: ~6.0
- illuminate/support: ~5.2
- laracasts/flash: ^3.0
- mattketmo/email-checker: ^1.5
- msurguy/honeypot: ^1.0
- spatie/image-optimizer: 1.0.*
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-10-28 18:58:38 UTC
README
Package is under development!
Alpaca
Simple CMS System based on Laravel Framework.
Requirements:
Why a new CMS system again?
I'm just frustrated with the system that's on the market.
Wordpress: Security issues (security updates), Hook system for modules is a real challenge
Drupal8: Slow, Cache, Complex (Field data attributes)
OctoberCMS: Pages will saved as a file, PHP Code is complex, Twig template system
https://trends.google.de/trends/explore?q=Wordpress,Drupal,typo3,joomla,octobercms
Installation
Package
Install laravel
laravel new blog
Install alpaca and dependecies
composer require alcodo/alpaca
Start create tables
php artisan migrate
Remove welcome route from
routes/web.php
Route::get('/', function () {
return view('welcome');
});
Template
Export the template:
php artisan vendor:publish --provider Alpaca\AlpacaServiceProvider Add in resources/assets/js/app.js: require('../../../vendor/alcodo/alpaca/resources/js/alpaca.js'); Add in resources/assets/sass/app.scss: @import 'vendor/alcodo/alpaca/resources/sass/alpaca.scss';
Icons:
mkdir -p public/assets/icons cp node_modules/trumbowyg/dist/ui/icons.svg public/assets/icons/
Add alpaca npm dependencies:
npm install file:./vendor/alcodo/alpaca/resources/js --save-dev yarn or with npm install
Extend auth logic
Create laravel basic login and registration auth
php artisan make:auth
Copy translated auth blade template files. This files are automatic integrated with alpaca:
cp -r vendor/alcodo/alpaca/resources/views/auth/ resources/views/auth/
Add to your User model the permission trait:
use Alpaca\Traits\Permission; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable, Permission; ...
Try to login with:
email: admin@alpaca.com
password: alpaca
Optional
Add translation files for your language:
art alpaca:publish_transaltion de