PHP code example of karim-qaderi / zoroaster-cache-card
1. Go to this page and download the library: Download karim-qaderi/zoroaster-cache-card 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/ */
karim-qaderi / zoroaster-cache-card example snippets
// in app\Zoroaster\Other\Dashboard.php
// ...
public function handle()
{
return [
// ...
new \KarimQaderi\ZoroasterCacheCard\CacheCard(),
];
}
/**
* Bootstrap any application services.
*
* @return void
*/
protected function boot()
{
Gate::define('Zoroaster-cache-card', function ($user) {
return in_array($user->email, [
'[email protected]',
]);
});
}