class DashboardController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

__construct()

Create a new instance.

Response
index(Guard $auth)

Show the application dashboard to the user.

Response
indexDashboard(User $user)

Show the dashboard for a logged in user.

array
volumesActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently created volume a user.

array
annotationsActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently annotated images of a user.

array
videosActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently annotated videos of a user.

Response
indexLandingPage()

Show the landing page if no user is authenticated.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

at line 20
__construct()

Create a new instance.

at line 33
Response index(Guard $auth)

Show the application dashboard to the user.

Parameters

Guard $auth

Return Value

Response

at line 49
protected Response indexDashboard(User $user)

Show the dashboard for a logged in user.

Parameters

User $user

Return Value

Response

at line 82
array volumesActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently created volume a user.

Parameters

User $user
int $limit
string $newerThan

Return Value

array

at line 110
array annotationsActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently annotated images of a user.

Parameters

User $user
int $limit
string $newerThan

Return Value

array

at line 142
array videosActivityItems(User $user, int $limit = 3, string $newerThan = null)

Get the most recently annotated videos of a user.

Parameters

User $user
int $limit
string $newerThan

Return Value

array

at line 170
protected Response indexLandingPage()

Show the landing page if no user is authenticated.

Return Value

Response