/** * Return all of the security logs * * @return mixed */ public function getAllSecurityLogs() { return SecurityLog::with('user'); }
/** * Return all of the security logs * * @param int $paginate * * @return mixed */ public function getAllSecurityLogs($paginate = 50) { return SecurityLog::with('user')->orderBy('created_at', 'desc')->paginate($paginate); }