2017 © Pedro Peláez
 

library chronos

Chronos CMS - A developer friendly headless CMS built by C4studio

image

c4studio/chronos

Chronos CMS - A developer friendly headless CMS built by C4studio

  • Wednesday, July 4, 2018
  • by c4studio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 163 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 35 Versions
  • 12 % Grown

The README.md

Chronos CMS


A developer friendly headless CMS built by C4studio., (*1)


Installation

It's as easy as:, (*2)

composer require c4studio/chronos

After composer has run add following lines to the providers[] array in app/config/app.php:, (*3)

...
Chronos\Scaffolding\ScaffoldingServiceProvider::class,
Chronos\Content\ContentServiceProvider::class,
...

Install dependencies

You also need to add the service providers for all the dependencies in app/config/app.php:, (*4)

...
Collective\Html\HtmlServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Laravel\Passport\PassportServiceProvider::class,
Lavary\Menu\ServiceProvider::class,
...

And also add the class aliases in the $aliases[] array:, (*5)

...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Image' => Intervention\Image\Facades\Image::class,
'Menu' => Lavary\Menu\Facade::class,
...

Publish assets

Next we need to publish all the assets belonging to Chronos:, (*6)

php artisan vendor:publish --tag=public

Note 1: if you would like to overwrite existing files, use the --force switch Note 2: if you wish to only publish Chronos assets, you might want to use the --provider flag., (*7)

Prepare User model

Next we need to prepare the User model to work with Chronos., (*8)

  1. First, let's move our User model into the App\Models namespace. It's just more organized this way.
mkdir app/Models
mv app/User.php app/Models/User.php
  1. Open User.php and change the namespace to namespace App\Models;, (*9)

  2. Add the ChronosUser trait to our model:, (*10)

...
use Notifiable, ChronosUser;
...
  1. Next, add some values to the appends[] array:
...
/**
 * The accessors to append to the model's array form.
 *
 * @var array
 */
protected $appends = ['endpoints', 'name'];
...
  1. Lastly, don't forget to tell Laravel where to look for our User model. Change the line in app/config/auth.php to:
...
'model' => App\Models\User::class,
...

Set APP_URL

Chronos requires you to set APP_URL in your .env file, (*11)

APP_URL=https://chronos.ro

Run migrations

Almost done. We need to run the migrations and seed our database:, (*12)

php artisan migrate
php artisan db:seed --class=\\Chronos\\Scaffolding\\Seeds\\DatabaseSeeder
php artisan db:seed --class=\\Chronos\\Content\\Seeds\\DatabaseSeeder

Set up task scheduling

Chronos runs a couple of tasks in the background, so you will need to set up task scheduling by adding the following to your Cron entries on your server:, (*13)

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

Install and configure Passport

  1. Add the following to the boot() method in app/Providers/AuthServiceProvider
Passport::routes();
  1. In app/Http/Kernel.php, add the following to the $middlewareGroups[] array:
...
\Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
...
  1. Change the driver to passport in config/auth.php
'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'passport',
        'provider' => 'users',
        'hash' => false,
    ],
],
  1. Run the install script of laravel/passport to generate our encryption keys:
php artisan passport:install
  1. Finally, create a new token in the Chronos admin, Settings/Access tokens.

http://c4studio.ro, (*14)

P.S.: You're awesome for being on this page, (*15)

The Versions

04/07 2018

dev-master

9999999-dev

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

04/07 2018

v2.2.18

2.2.18.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

31/05 2018

v2.2.17

2.2.17.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

14/05 2018

v2.2.16

2.2.16.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

10/03 2018

v2.2.15

2.2.15.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

01/03 2018

v2.2.14

2.2.14.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

22/02 2018

v2.2.13

2.2.13.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

12/02 2018

v2.2.12

2.2.12.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

02/02 2018

v2.2.11

2.2.11.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

21/12 2017

v2.2.10

2.2.10.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

19/12 2017

v2.2.9

2.2.9.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

14/12 2017

v2.2.8

2.2.8.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/12 2017

v2.2.7

2.2.7.0

Chronos CMS - A developer friendly headless CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/12 2017

v2.2.6

2.2.6.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

20/10 2017

v2.2.5

2.2.5.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

06/10 2017

v2.2.4

2.2.4.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

18/09 2017

v2.2.3

2.2.3.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

14/09 2017

v2.2.2

2.2.2.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

21/08 2017

v2.2.1

2.2.1.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

20/08 2017

v2.2

2.2.0.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

12/07 2017

v2.1.10

2.1.10.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

08/07 2017

v2.1.9

2.1.9.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

28/06 2017

v2.1.8

2.1.8.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

15/06 2017

v2.1.7

2.1.7.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

07/06 2017

v2.1.6

2.1.6.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

01/06 2017

v2.1.5

2.1.5.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

24/05 2017

v2.1.4

2.1.4.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

17/05 2017

v2.1.3

2.1.3.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

15/05 2017

v2.1.2

2.1.2.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

15/05 2017

v2.1.1

2.1.1.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/05 2017

v2.1

2.1.0.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/05 2017

v2.0.3

2.0.3.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/05 2017

v2.0.2

2.0.2.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

11/05 2017

v2.0.1

2.0.1.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio

05/05 2017

v2.0

2.0.0.0

Chronos CMS - A developer friendly CMS built by C4studio

  Sources   Download

MIT

The Requires

 

by Avatar c4studio