Download the PHP package c4studio/chronos without Composer
On this page you can find all versions of the php package c4studio/chronos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download c4studio/chronos
More information about c4studio/chronos
Files in c4studio/chronos
Package chronos
Short Description Chronos CMS - A developer friendly headless CMS built by C4studio
License MIT
Informations about the package chronos
Chronos CMS
A developer friendly headless CMS built by C4studio.
Installation
It's as easy as:
composer require c4studio/chronos
After composer has run add following lines to the providers[] array in :
Install dependencies
You also need to add the service providers for all the dependencies in :
And also add the class aliases in the array:
Publish assets
Next we need to publish all the assets belonging to Chronos:
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.
Prepare User model
Next we need to prepare the User model to work with Chronos.
-
First, let's move our User model into the App\Models namespace. It's just more organized this way.
-
Open User.php and change the namespace to
-
Add the ChronosUser trait to our model:
-
Next, add some values to the appends[] array:
- Lastly, don't forget to tell Laravel where to look for our User model. Change the line in to:
Set APP_URL
Chronos requires you to set APP_URL in your .env file
Run migrations
Almost done. We need to run the migrations and seed our database:
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:
Install and configure Passport
-
Add the following to the method in
-
In , add the following to the array:
-
Change the driver to in
-
Run the install script of laravel/passport to generate our encryption keys:
- Finally, create a new token in the Chronos admin, .
P.S.: You're awesome for being on this page
All versions of chronos with dependencies
intervention/image Version ^2.3
laravel/framework Version ^5.7|^6.0
laravel/passport Version >3.0
laravelcollective/html Version ^5.3|^6.0
lavary/laravel-menu Version ^1.6