2017 © Pedro Peláez
 

library alpaca

Simple laravel CMF system

image

alcodo/alpaca

Simple laravel CMF system

  • Sunday, June 10, 2018
  • by approached
  • Repository
  • 1 Watchers
  • 5 Stars
  • 347 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 35 Versions
  • 5 % Grown

The README.md

Package is under development!, (*1)

, (*2)

Build Status Total Downloads Latest Stable Version License , (*3)

Alpaca

Simple CMS System based on Laravel Framework., (*4)

Requirements: * Laravel Framework (Doc) * Vue.js (Doc) * Bootstrap 4 (Doc) * BootstrapVue (Doc) * EmailChecker), (*5)

Why a new CMS system again?

I'm just frustrated with the system that's on the market., (*6)

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, (*7)

https://trends.google.de/trends/explore?q=Wordpress,Drupal,typo3,joomla,octobercms, (*8)

Installation

Package

Install laravel, (*9)

laravel new blog

Install alpaca and dependecies, (*10)

composer require alcodo/alpaca

Start create tables, (*11)

php artisan migrate

Remove welcome route from ``` routes/web.php, (*12)

Route::get('/', function () { return view('welcome'); }); ```, (*13)

Template

Export the template:, (*14)

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:, (*15)

mkdir -p public/assets/icons
cp node_modules/trumbowyg/dist/ui/icons.svg public/assets/icons/

Add alpaca npm dependencies:, (*16)

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, (*17)

php artisan make:auth

Copy translated auth blade template files. This files are automatic integrated with alpaca:, (*18)

cp -r vendor/alcodo/alpaca/resources/views/auth/ resources/views/auth/

Add to your User model the permission trait:, (*19)

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:, (*20)

email: admin@alpaca.com
password: alpaca

Optional

Add translation files for your language:, (*21)

art alpaca:publish_transaltion de

Projects which alpaca uses

The Versions