mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Fixed some bugs and added a proper home page
This commit is contained in:
@ -19,7 +19,6 @@ class ActivityService
|
||||
$this->user = Auth::user();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add activity data to database.
|
||||
* @para Entity $entity
|
||||
@ -54,4 +53,15 @@ class ActivityService
|
||||
$this->activity->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the latest activity.
|
||||
* @param int $count
|
||||
* @param int $page
|
||||
*/
|
||||
public function latest($count = 20, $page = 0)
|
||||
{
|
||||
return $this->activity->orderBy('created_at', 'desc')
|
||||
->skip($count*$page)->take($count)->get();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user