Console recurring re-factory
This commit is contained in:
@ -127,7 +127,7 @@ class User extends Authenticatable
|
||||
/**
|
||||
* Always return a valid picture when we retrieve it
|
||||
*/
|
||||
public function getLastLoggedInAtAttribute($value)
|
||||
public function getLastLoggedAttribute($value)
|
||||
{
|
||||
// Date::setLocale('tr');
|
||||
|
||||
|
@ -26,4 +26,16 @@ class Recurring extends Model
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope to get all rows filtered, sorted and paginated.
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
public function scopeAllCompanies($query)
|
||||
{
|
||||
return $query->where('company_id', '<>', '0');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user