Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.