PHP code example of fuelviews / laravel-navigation
1. Go to this page and download the library: Download fuelviews/laravel-navigation library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fuelviews / laravel-navigation example snippets
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,
];
<x-navigation::navigation />
<x-navigation::spacer />
bash
php artisan vendor:publish --tag="navigation-config"
bash
php artisan vendor:publish --tag="navigation-logo-png"
bash
php artisan vendor:publish --tag="navigation-logo"
bash
php artisan vendor:publish --tag="navigation-views"
bash
php artisan vendor:publish --tag="navigation-footer-views"
bash
php artisan vendor:publish --tag="navigation-spacer"
javascript
content: [
'./vendor/fuelviews/laravel-*/resources/**/*.{js,vue,blade.php}',
]