label()); } /** * Get the displayable name of the dashboard. * * @return string */ public function name() { return $this->name ?: Nova::humanize($this); } /** * Get the displayable name of the dashboard. * * @return string */ public function label() { return $this->name(); } /** * Get the URI key of the dashboard. * * @return string */ public function uriKey() { return Str::singular(Str::snake(class_basename(get_called_class()), '-')); } /** * Get the cards that should be displayed on the Nova dashboard. * * @return array */ abstract public function cards(); /** * Build the menu that renders the navigation links for the tool. * * @param \Illuminate\Http\Request $request * @return mixed */ public function menu(Request $request) { return MenuItem::dashboard(static::class); } /** * Show a refresh button for the dashboard. * * @return $this */ public function showRefreshButton() { $this->showRefreshButton = true; return $this; } }