PHP code example of marcbelletre / laravel-diese
1. Go to this page and download the library: Download marcbelletre/laravel-diese library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marcbelletre / laravel-diese example snippets
use MarcBelletre\LaravelDiese\Facades\Diese;
// Use the `get` method to retrieve all records for a content type
$productions = Diese::get('productions');
$cast = Diese::find('production/cast/10');
// Use the `find` method to retrieve a single record by its ID
$production = Diese::find('production', 10);
$productionType = Diese::find('productionType', 2);