|
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Auth;
|
|
|
|
|
class Project extends SoftDeletesModel
|
|
|
|
|
{
|
|
|
|
|
protected $table = "project";
|
|
|
|
|
public $appends = ["logo_url", "banner_url"];
|
|
|
|
|
public $appends = ["logo_url", "banners_url"];
|
|
|
|
|
|
|
|
|
|
public function scopeAdminProject($query)
|
|
|
|
|
{
|
|
|
|
|
@ -26,7 +26,7 @@ class Project extends SoftDeletesModel
|
|
|
|
|
return $this->logo ? $protocol . "://" . request()->getHost() . $this->logo : $this->logo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getBannerUrlAttribute()
|
|
|
|
|
public function getBannersUrlAttribute()
|
|
|
|
|
{
|
|
|
|
|
$protocol = request()->secure() ? "https" : "http";
|
|
|
|
|
return $this->banners ? $protocol . "://" . request()->getHost() . $this->banners : $this->banners;
|
|
|
|
|
|