Prismic Eloquent
  • Prismic Eloqent
  • Installation / Configuration
  • Models
  • Query builder
  • Caching
Powered by GitBook
On this page
  • Download
  • Composer install
  • Or download .zip format
  • Artisan
  • Configuration
  • Api credentials

Installation / Configuration

PreviousPrismic EloqentNextModels

Last updated 6 years ago

Download

Composer install

composer require robindrost/prismic-eloquent

Or download .zip format

Artisan

Run the following artisan commands to publish the configuration files and service provider to your project.

php artisan vendor:publish

Configuration

Api credentials

Most important to configure is your repository url and (if needed) access token. You can either set them directly or configure them in the .env file.

'url' => env('PRISMIC_ELOQUENT_URL', ''),
'access_token' => env('PRISMIC_ELOQUENT_ACCESS_TOKEN', ''),
http://github.com/robindrost/prismic-eloquent