Skip to content

Commit

Permalink
Composer optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Krato committed Feb 21, 2019
1 parent 913468c commit c03529b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": ">=7.1.0"
"php": ">=7.1.0",
"laravel/nova": "*"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 2 additions & 4 deletions src/NovaLinkResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
]);
}

/**
Expand Down

0 comments on commit c03529b

Please sign in to comment.