add setting() helper; fix invalid defaults for mysql in table

This commit is contained in:
Nabeel Shahzad
2017-12-09 21:56:26 -06:00
parent 3a22062cd2
commit f2add8908b
7 changed files with 60 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Repositories;
use App\Models\Setting;
use App\Repositories\Traits\CacheableRepository;
use Prettus\Repository\Contracts\CacheableInterface;
class SettingRepository extends BaseRepository implements CacheableInterface
{
use CacheableRepository;
public function model()
{
return Setting::class;
}
/**
* Get a setting, reading it from the cache
* @param array $key
* @return mixed|void
*/
public function get($key)
{
}
public function set($key, $value)
{
}
}