Download the PHP package glhd/laravel-prismoquent without Composer
On this page you can find all versions of the php package glhd/laravel-prismoquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download glhd/laravel-prismoquent
More information about glhd/laravel-prismoquent
Files in glhd/laravel-prismoquent
Package laravel-prismoquent
Short Description Prismoquent lets you access Prismic.io using the same methods you're used to in Eloquent.
License MIT
Informations about the package laravel-prismoquent
An eloquent way to access Prismic.io content
This package provides a mostly Eloquent-compatible Model that you can use to access content from Prismic.io as though it were a standard Eloquent model.
App/Page.php
App/Http/Controllers/PageController.php
resources/views/page/show.blade.php
Warning: Active Development
This project is still in active development and may have many bugs. Use at your own risk!
Installation
You can install the package via composer:
Usage
See above for a basic example. More details coming soon.
Configuration
Looks for config in your services.php
file:
Link Resolution
You can register link resolvers as either a callable or a route name:
If you do not set up a resolver, Prismoquent will try a resource route
for your document. So Page
will try route('pages.show', $uid)
or
NewsItem
will try route('news_items.show', $uid)
.
Once your resolvers are defined, you can resolve links in any Prismic Fragment using:
Blade Directives
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-prismoquent with dependencies
illuminate/database Version 5.6.*|5.7.*|5.8.*
illuminate/events Version 5.6.*|5.7.*|5.8.*
illuminate/pagination Version 5.6.*|5.7.*|5.8.*
illuminate/routing Version 5.6.*|5.7.*|5.8.*
illuminate/support Version 5.6.*|5.7.*|5.8.*
prismic/php-sdk Version ^3.4.2