fuelviews / laravel-navigation
Laravel Navigation Package
Fund package maintenance!
Fuelviews
Installs: 156
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.1||^8.2||^8.3||^8.4
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- fuelviews/laravel-forms: >=0.0.0
- laravel/pint: ^1.14
- livewire/livewire: ^3.5
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- ralphjsmit/laravel-glide: ^1.2.1
README
Installation
You can install the package via composer:
composer require fuelviews/laravel-navigation
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --tag="navigation-config"
This is the contents of the published config file:
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 'default_logo' => 'images/logo.png', 'transparency_logo' => 'images/logo.png', // navigation config 'top_nav_enabled' => false, 'logo_swap_enabled' => true, 'transparent_nav_background' => true, ];
Optionally, you can publish the sample logo file using:
php artisan vendor:publish --tag="navigation-logo-png"
Optionally, you can publish the logo view using:
php artisan vendor:publish --tag="navigation-logo"
Optionally, you can publish the views using:
php artisan vendor:publish --tag="navigation-views"
Optionally, you can publish the footer views using:
php artisan vendor:publish --tag="navigation-footer-views"
Optionally, you can publish the spacer view using:
php artisan vendor:publish --tag="navigation-spacer"
Usage
<x-navigation::navigation /> <x-navigation::spacer />
Tailwindcss classes
Add laravel-forms to your tailwind.config.js file:
content: [ './vendor/fuelviews/laravel-*/resources/**/*.{js,vue,blade.php}', ]
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.