1. Go to this page and download the library: Download shopwwi/laravel-cache 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/ */
shopwwi / laravel-cache example snippets
namespace app\controller;
use Shopwwi\LaravelCache\Cache;
class UserController extends Controller
{
/**
* 显示应用程序的所有用户的列表。
*
* @return Response
*/
public function index()
{
$value = Cache::get('key');
//
}
}