Skip to content

A customizable Laravel content-management system. (Currently in beta.)

License

Notifications You must be signed in to change notification settings

hanifeoglu/laravel-folio

 
 

Repository files navigation

Folio for Laravel logo.

A customizable Laravel content-management system. (Currently in beta.)

Live Examples

Nono.MA | Getting Simple | Lourdes.AC | AR-MA | Getting Architecture Done | Nacho.MA

Installation · Laravel 7.x

  • Add alternate VCS repos for packages without Laravel 7 support to composer.json.
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/nonoesp/versionable"
        },
        {
            "type": "vcs",
            "url": "https://github.com/nonoesp/laravel-imgix"
        }
    ],
  • composer require nonoesp/folio:7.x-dev
  • php artisan folio:install
  • php artisan migrate
  • Add the following middleware to app/Http/Kernel.php:
    protected $middlewareGroups = [
        'web' => [
            /// nonoesp/folio
            \Nonoesp\Folio\Middleware\SetLocales::class,
        ],
    ];
  • Party!

Build Folio's Assets with Laravel Mix

You can fully customize the JavaScript and SCSS assets.

  • Publish Folio's assets
    • php artisan vendor:publish --provider="Nonoesp\Folio\FolioServiceProvider" --tag=dev-assets
  • Install npm dependencies
    • npm install nonoesp/folio-scss bourbon@4.3.4 font-awesome vue vue-resource vue-focus lodash jquery jquery-lazy jquery-unveil validate-js vuedraggable
    • npm install
  • Build the assets with Laravel Mix and configurate it with webpack.mix.js
    • npm run prod · to build for production
    • npm run dev · to build for development
    • npm run watch · to rebuild on changes with BrowserSync

Customize Folio's Config, Views, Translations & Assets

Configure Folio by publishing config/folio.php.

# Config
php artisan vendor:publish --provider="Nonoesp\Folio\FolioServiceProvider" --tag=config

# Views
php artisan vendor:publish --provider="Nonoesp\Folio\FolioServiceProvider" --tag=views

# Translations
php artisan vendor:publish --provider="Nonoesp\Folio\FolioServiceProvider" --tag=lang

# JavaScript & SCSS assets
php artisan vendor:publish --provider="Nonoesp\Folio\FolioServiceProvider" --tag=dev-assets

Other

  • Subscriber email notifications can be configured in folio.subscribers and setting up Amazon SES in services.ses.
  • Backups can be configured by adding disks to backup.destination.disks (having those disks configured in filesystems, say Dropbox, Digital Ocean, or S3).

License

Folio is licensed under the MIT license.

Me

Hi. I'm Nono Martínez Alonso (Nono.MA), a computational designer with a penchant for simplicity.

I host Getting Simple—a podcast about how you can live a meaningful, creative, simple life—sketch things that call my attention, and write about enjoying a slower life.

If you find Folio useful in any way, reach out on Twitter at @nonoesp. Cheers!

About

A customizable Laravel content-management system. (Currently in beta.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 52.9%
  • HTML 42.7%
  • JavaScript 2.8%
  • CSS 1.6%