1. Go to this page and download the library: Download kraenkvisuell/entriloquent 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/ */
kraenkvisuell / entriloquent example snippets
namespace App\Models;
class Product extends Entriloquent
{
//
}
use App\Models\Product;
//returns product entry - will ONLY search in products collection:
$product = Product::find($id);
// also returns product entry, also only searching in products collection:
$product = Product::where('slug', 'awesome-product-1')->first();
use App\Models\Product;
//returns collection of product entries:
$product = Product::where('price', '>=', 100)->get();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.