1. Go to this page and download the library: Download laravie/cabinet 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/ */
laravie / cabinet example snippets
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravie\Cabinet\Cabinet;
class User extends Authenticatable
{
use Cabinet;
}
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravie\Cabinet\Cabinet;
class User extends Authenticatable
{
use Cabinet;
/**
* Configure cabinet for the eloquent model.
*
* @param \Laravie\Cabinet\Repository $cabinet
* @return void
*/
protected function onCabinet($cabinet)
{
$cabinet->setStorage(resolve('cache.store'));
}
}