1. Go to this page and download the library: Download eusonlito/query-remember 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/ */
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();