{"id":13832454,"url":"https://github.com/vmitchell85/nova-links","last_synced_at":"2025-03-16T21:30:48.932Z","repository":{"id":38485040,"uuid":"146126126","full_name":"vmitchell85/nova-links","owner":"vmitchell85","description":"Add links to your nova sidebar","archived":false,"fork":false,"pushed_at":"2023-03-23T12:30:26.000Z","size":195,"stargazers_count":36,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-21T21:04:54.437Z","etag":null,"topics":["laravel","nova"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmitchell85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-25T20:06:07.000Z","updated_at":"2023-06-20T20:25:01.000Z","dependencies_parsed_at":"2024-01-18T06:15:46.846Z","dependency_job_id":null,"html_url":"https://github.com/vmitchell85/nova-links","commit_stats":{"total_commits":20,"total_committers":5,"mean_commits":4.0,"dds":0.6,"last_synced_commit":"5641c2adf83a3bc1e85311ab6f3cda3857c3583b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmitchell85%2Fnova-links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmitchell85%2Fnova-links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmitchell85%2Fnova-links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmitchell85%2Fnova-links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmitchell85","download_url":"https://codeload.github.com/vmitchell85/nova-links/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830939,"owners_count":20354853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","nova"],"created_at":"2024-08-04T11:00:17.810Z","updated_at":"2025-03-16T21:30:48.615Z","avatar_url":"https://github.com/vmitchell85.png","language":"PHP","readme":"# A Laravel Nova package to display custom links in the sidebar navigation\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/vmitchell85/nova-links.svg?style=flat-square)](https://packagist.org/packages/vmitchell85/nova-links)\n[![Total Downloads](https://img.shields.io/packagist/dt/vmitchell85/nova-links.svg?style=flat-square)](https://packagist.org/packages/vmitchell85/nova-links)\n\n!['Header Image'](https://banners.beyondco.de/Nova%20Links.png?theme=dark\u0026packageManager=composer+require\u0026packageName=vmitchell85%2Fnova-links\u0026pattern=hexagons\u0026style=style_2\u0026description=Add+custom+links+to+your+Nova+sidebar\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=link)\n\nThis package leets you add any number of links to the Nova sidebar.\n\n\u003e **Note:** For Nova 3 or earlier use version 1.x\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require vmitchell85/nova-links\n```\n\n## Usage\n\nRegister the tool in the `tools` method of the `NovaServiceProvider`.\n\n```php\n// app/Providers/NovaServiceProvider.php\n\n// ...\n\npublic function tools()\n{\n    return [\n        // ...\n        (new \\vmitchell85\\NovaLinks\\Links('Documentation'))\n            -\u003eaddExternalLink('Laravel Docs', 'https://laravel.com/docs')\n            -\u003eaddExternalLink('Nova Docs', 'https://nova.laravel.com/docs')\n    ];\n}\n```\n\n### Examples\n\nAdd internal links or external links calling the `addLink` or `addExternalLink` methods respectively.\n\n```php\n// app/Providers/NovaServiceProvider.php\n\n// ...\n\npublic function tools()\n{\n    return [\n        // ...\n        (new \\vmitchell85\\NovaLinks\\Links('All Links'))\n            -\u003eaddLink('Nova Main', '/')\n            -\u003eaddExternalLink('Laravel Docs', 'https://laravel.com/docs'),\n    ];\n}\n```\n\nYou can also change the navigation label by passing a string to the constructor:\n\n```php\n// app/Providers/NovaServiceProvider.php\n\n// ...\n\npublic function tools()\n{\n    return [\n        // ...\n        (new \\vmitchell85\\NovaLinks\\Links('Quick Links'))\n            -\u003eaddLink('Nova Main', '/')\n            -\u003eaddExternalLink('Frontend', url('/')),\n\n        (new \\vmitchell85\\NovaLinks\\Links('Laravel-related News'))\n            -\u003eaddExternalLink('Laravel Blog', 'https://blog.laravel.com')\n            -\u003eaddExternalLink('Laravel News', 'https://laravel-news.com'),\n    ];\n}\n```\n\nTo open a link in a new browser window, set the third parameter on `addLink` or `addExternalLink` to `true`:\n\n```php\n// app/Providers/NovaServiceProvider.php\n\n// ...\n\npublic function tools()\n{\n    return [\n        // ...\n        (new \\vmitchell85\\NovaLinks\\Links('Laravel-related News'))\n            -\u003eaddLink('Nova Main', '/', true)\n            -\u003eaddExternalLink('Laravel News', 'https://laravel-news.com', true),\n    ];\n}\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":["Packages"],"sub_categories":["Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmitchell85%2Fnova-links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmitchell85%2Fnova-links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmitchell85%2Fnova-links/lists"}