2017 © Pedro Peláez
 

library laravel-topnav

Create simple top navigation for laravel

image

pinfort/laravel-topnav

Create simple top navigation for laravel

  • Thursday, April 12, 2018
  • by pinfort
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

laravel-topnav

Create simple top navigation for laravel, (*1)

Basic Usage

Installation

composer require pinfort/laravel-topnav

Attention: Perhaps it is necessary to change the minimum stability of the composer..., (*2)

Publish files

php artisan vendor:publish

You will find five new files. * public/vendor/TopNav/top_nav.css - It is required. - config/top_nav.php - You will edit this file to make your own top navigation. - resources/lang/vendor/LaravelTopNav/en/ui.php - You will edit this file too. - To add new items, you should define its translation. - resources/views/vendor/LaravelTopNav/menu.blade.php - This file is main view of menu. - In basic, you have no need to edit this file. - resources/views/vendor/LaravelTopNav/menu_items.blade.php - This file is sub view of menu. - In basic, you have no need to edit this file., (*3)

Edit config

Edit config/top_nav.php whatever you need. Read comments in the file., (*4)

Add translation

Add translations to resources/lang/vendor/LaravelTopNav/en/ui.php. cf. config/top_nav.php, (*5)

Enable library

Add style sheet link to your view. near the line 14, (*6)

in resources/views/layouts/app.blade.php(created by make:auth command), (*7)

 <!-- Styles -->
 <link href="{{ asset('css/app.css') }}" rel="stylesheet">
+<link href="{{ asset('vendor/TopNav/top_nav.css') }}" rel="stylesheet">

Add following code in your view., (*8)

same file. in resources/views/layouts/app.blade.php(created by make:auth command), (*9)

near the line 39, (*10)

 <!-- Left Side Of Navbar -->
-<ul class="nav navbar-nav">
-    &nbsp;
-</ul>
+@laraveltopnav

Now it works!

demo, (*11)

The Versions

12/04 2018

dev-master

9999999-dev

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

12/04 2018

v0.1.0

0.1.0.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

10/04 2018

v0.0.5

0.0.5.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

27/02 2018

0.0.4

0.0.4.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

01/01 2018

0.0.3

0.0.3.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

01/01 2018

0.0.2

0.0.2.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu

01/01 2018

0.0.1

0.0.1.0

Create simple top navigation for laravel

  Sources   Download

MIT

The Requires

 

by Avatar pinfort

laravel navigation menu