Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fuelviews/laravel-navigation
Fuelviews laravel navigation package
https://github.com/fuelviews/laravel-navigation
Last synced: about 1 month ago
JSON representation
Fuelviews laravel navigation package
- Host: GitHub
- URL: https://github.com/fuelviews/laravel-navigation
- Owner: fuelviews
- License: mit
- Created: 2024-06-01T00:59:43.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T01:58:50.000Z (about 2 months ago)
- Last Synced: 2024-11-10T02:22:49.863Z (about 2 months ago)
- Language: Blade
- Homepage: https://fuelviews.com
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel navigation package
## Installation
You can install the package via composer:
```bash
composer require fuelviews/laravel-navigation
```You can publish and run the migrations with:
You can publish the config file with:
```bash
php artisan vendor:publish --tag="navigation-config"
```This is the contents of the published config file:
```php
return [// navigation links config
'navigation' => [// single link
[
'type' => 'link',
'position' => 0,
'name' => 'Welcome',
'route' => 'welcome',
],// dropdown link
[
'type' => 'dropdown',
'position' => 1,
'name' => 'Welcome',
'links' => [
[
'name' => 'Welcome',
'route' => 'welcome',
],
[
'name' => 'Welcome',
'route' => 'welcome',
],
],
],
],// scrolled routes
'pre_scrolled_routes' => [
'careers',
'contact',
'forms.thank-you'
],// phone config
'phone' => config('businessinfo.phone') ?: '(666) 666-6666',// logo config
'transparency_logo' => '',
'default_logo' => '',// navigation config
'top_nav_enabled' => false,
'logo_swap_enabled' => true,
'transparent_nav_background' => true,
];
```Optionally, you can publish the views using:
```bash
php artisan vendor:publish --tag="navigation-views"
```
```## Usage
```php
```
## Tailwindcss classes
Add laravel-forms to your tailwind.config.js file:
```javascript
content: [
'./vendor/fuelviews/laravel-*/resources/**/*.{js,vue,blade.php}',
]
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Thejmitchener](https://github.com/thejmitchener)
- [Fuelviews](https://github.com/fuelviews)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.