(Update) Cleanup Wish Model

This commit is contained in:
HDVinnie
2018-06-06 19:51:51 -04:00
parent 3dd770ce25
commit d1127ab5a4
+10
View File
@@ -16,8 +16,18 @@ use Illuminate\Database\Eloquent\Model;
class Wish extends Model
{
/**
* The Attributes That Aren't Mass Assignable
*
* @var array
*/
protected $guarded = [];
/**
* Belongs To A User
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class)->withDefault([