PHP code example of darkghosthunter / rememberable-query
1. Go to this page and download the library: Download darkghosthunter/rememberable-query 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/ */
darkghosthunter / rememberable-query example snippets
use Illuminate\Support\Facades\DB;
use App\Models\Article;
$database = DB::table('articles')->latest('published_at')->take(10)->remember()->get();
$eloquent = Article::latest('published_at')->take(10)->remember()->get();