From c03529bc5acfc3a263f13b72da62d26b7b23b471 Mon Sep 17 00:00:00 2001 From: Eric Lagarda Date: Thu, 21 Feb 2019 10:30:23 +0100 Subject: [PATCH] Composer optimizations --- composer.json | 14 ++++++++++++-- src/NovaLinkResource.php | 6 ++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 653bdd8..7a2d4a6 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,21 @@ "description": "A Laravel Nova tool.", "keywords": [ "laravel", - "nova" + "nova", + "link" ], + "homepage": "https://github.com/Krato/NovaLinkResource", "license": "MIT", + "authors": [ + { + "name": "Eric Lagarda", + "email": "eric@infinety.es", + "role": "Developer" + } + ], "require": { - "php": ">=7.1.0" + "php": ">=7.1.0", + "laravel/nova": "*" }, "autoload": { "psr-4": { diff --git a/src/NovaLinkResource.php b/src/NovaLinkResource.php index 0186d74..c25a77e 100644 --- a/src/NovaLinkResource.php +++ b/src/NovaLinkResource.php @@ -23,13 +23,11 @@ public function boot() */ public function renderNavigation() { - $data = [ + return view('NovaLinkResource::navigation', [ 'name' => $this->getMeta('name', 'Nova Link'), 'to' => $this->getMeta('to', '/'), 'icon' => $this->getMeta('icon', null), - ]; - - return view('NovaLinkResource::navigation', $data); + ]); } /**