laravel model undefined property

39

add the to the function in the model eg : you can't access $user->photo then create a function inside user model called getImage() then inside the function write return $this->attributes['photo']; then call the $user->getImage() in the controller, everything will work fine
add the to the function in the model eg : you can't access $user->photo then create a function inside user model called getImage() then inside the function write return $this->attributes['photo']; then call the $user->getImage() in the controller, everything will work fine
add the to the function in the model
  eg : you can't access $user->photo then create a function 
  inside user model called getImage() then inside the function write
  return $this->attributes['photo']; 
  then call the $user->getImage() in the controller, 
  everything will work fine
add the to the function in the model eg : you can't access $user->photo then create a function inside user model called getImage() then inside the function write return $this->attributes['photo']; then call the $user->getImage() in the controller, everything will work fine
add the to the function in the model eg : you can't access $user->photo then create a function inside user model called getImage() then inside the function write return $this->attributes['photo']; then call the $user->getImage() in the controller, everything will work fine

Comments

Submit
0 Comments