-
Notifications
You must be signed in to change notification settings - Fork 2
3. Menu
Lucas F. Lu edited this page Jan 29, 2020
·
4 revisions
Menu is defined within template file 'vendor/feiron/felaraframe/src/resource/views/sidebar.blade.php', under section "main_menu".
some base blade file, like 'home.blade.php'
@extends('felaraframe::page')
@section('main_menu')
@parent
<li class="tm">
<a href="url/"><i class="fa fa-angle-right"></i><span>My New Menu</span></a>
</li>
@endsection
note: make sure site config for "use_route_as_menu" is set to true.
Name a route with prefix "FrameMenus.", the remaining portion of the route name will be used as menu title.
In route file such as "/routes/web.php"
Route::get('UserInfo', 'users@info')->name('FrameMenus.UserInfo');
A menu displayed with "UserInfo" will be inserted into the menu section.
Feedback is much appreciated! I can be reached at [email protected]