PHP code example of codelinde / laravel-navsmith
1. Go to this page and download the library: Download codelinde/laravel-navsmith 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/ */
codelinde / laravel-navsmith example snippets
Route::navsmith(function () {
Route::get('/', Welcome::class)->name('home');
Route::get('/about', About::class)->name('about');
Route::get('/contact', Contact::class)->name('contact');
});
Route::navsmith(function () {
Route::get('/a-cumbersome-url', Contact::class)->name('contact');
});
bash
php artisan vendor:publish --tag="navsmith-views"