for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Larrock\Core\Traits;
use Cache;
use Larrock\Core\Models\Seo;
trait GetAdminLink
{
public function getAdminUrlAttribute()
$cache_key = sha1('getAdminUrlAttribute'.$this->id.$this->config->name);
return Cache::rememberForever($cache_key, function () {
return '/admin/'. $this->config->name .'/'. $this->id .'/edit';
});
}