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.

index(Guard $auth)

Show the application dashboard to the user.

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.

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 18
__construct()

Create a new instance.

at line 30
index(Guard $auth)

Show the application dashboard to the user.

Parameters

Guard $auth

at line 44
protected indexDashboard(User $user)

Show the dashboard for a logged in user.

Parameters

User $user

at line 77
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 105
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 138
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 165
protected indexLandingPage()

Show the landing page if no user is authenticated.