Model fixes
This commit is contained in:
@@ -25,19 +25,12 @@ class User extends Model implements UserInterface, RemindableInterface
|
||||
{
|
||||
use UserTrait, RemindableTrait;
|
||||
|
||||
/**
|
||||
* The database table used by the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
/**
|
||||
* The hidden properties.
|
||||
*
|
||||
* These are excluded when we are serializing the model.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $hidden = ['password', 'remember_token'];
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ class WebHook extends Model
|
||||
*/
|
||||
public function response()
|
||||
{
|
||||
return $this->hasMany('WebHookContent', 'hook_id', 'id');
|
||||
return $this->hasMany('CachetHQ\Cachet\Models\WebHookContent', 'hook_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,6 @@ class WebHookResponse extends Model
|
||||
*/
|
||||
public function hook()
|
||||
{
|
||||
return $this->belongsTo('WebHook', 'id', 'hook_id');
|
||||
return $this->belongsTo('CachetHQ\Cachet\Models\WebHook', 'id', 'hook_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user