diff --git a/app/Cart.php b/app/Cart.php index 0a144da..7af0d5e 100644 --- a/app/Cart.php +++ b/app/Cart.php @@ -6,7 +6,7 @@ class Cart extends Model { - protected $location = '/Images/Products/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/Images/Products/'; public function getImageAttribute($image) { diff --git a/app/Gallery.php b/app/Gallery.php index c9671d2..b2d3ee2 100644 --- a/app/Gallery.php +++ b/app/Gallery.php @@ -8,7 +8,7 @@ class Gallery extends Model { // protected $fillable = ['title','image']; - protected $location = '/Images/Gallery/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/Images/Gallery/'; public function getImageAttribute($image){ return $this->location.$image; } diff --git a/app/HappyCustomer.php b/app/HappyCustomer.php index e510576..ee44cc2 100644 --- a/app/HappyCustomer.php +++ b/app/HappyCustomer.php @@ -12,7 +12,7 @@ class HappyCustomer extends Model 'photo', 'about', ]; - protected $location = "/Images/Customers/"; + protected $location = "http://localhost/Foods-Ecommerce/public/Images/Customers/"; public function getPhotoAttribute($photo){ return $this->location.$photo; diff --git a/app/Order.php b/app/Order.php index 8b7a94c..b85dbcd 100644 --- a/app/Order.php +++ b/app/Order.php @@ -8,7 +8,7 @@ class Order extends Model { protected $fillable = ['user_id','phone','address','note','total','shipping_status']; - protected $location = '/Images/Products/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/Images/Products/'; public function getImageAttribute($image){ return $this->location.$image; diff --git a/app/Product.php b/app/Product.php index 61ad0cf..24652fa 100644 --- a/app/Product.php +++ b/app/Product.php @@ -23,7 +23,7 @@ class Product extends Model ],*/ ]; - protected $location = '/Images/Products/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/Images/Products/'; public function getImageAttribute($image){ return $this->location.$image; diff --git a/app/Slider.php b/app/Slider.php index b2253bc..3e18fd1 100644 --- a/app/Slider.php +++ b/app/Slider.php @@ -7,7 +7,7 @@ class Slider extends Model { // - protected $path = '/Images/Slider/'; + protected $path = 'http://localhost/Foods-Ecommerce/public/Images/Slider/'; protected $fillable = [ 'image', ]; diff --git a/app/TeamMember.php b/app/TeamMember.php index aca532a..106a9f7 100644 --- a/app/TeamMember.php +++ b/app/TeamMember.php @@ -13,7 +13,7 @@ class TeamMember extends Model 'photo', 'about', ]; - protected $location = "/Images/Members/"; + protected $location = "http://localhost/Foods-Ecommerce/public/Images/Members/"; public function getPhotoAttribute($photo){ return $this->location.$photo; diff --git a/app/User.php b/app/User.php index 70102e2..a484121 100644 --- a/app/User.php +++ b/app/User.php @@ -26,7 +26,7 @@ class User extends Authenticatable protected $hidden = [ 'password', 'remember_token', ]; - protected $location = '/UserImage/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/UserImage/'; public function getImageAttribute($image){ if($image){ diff --git a/app/infos.php b/app/infos.php index 03b23c0..ad3332a 100644 --- a/app/infos.php +++ b/app/infos.php @@ -9,7 +9,7 @@ class infos extends Model // protected $fillable = ['name','address','phone','email','logo','about']; - protected $location = '/Images/logo/'; + protected $location = 'http://localhost/Foods-Ecommerce/public/Images/logo/'; public function getLogoAttribute($image){ return $this->location.$image;