Support the ongoing development of Laravel.io →
Packages Laravel Laravel.io
Last updated 2 years ago.
0

If 'member_dashbiard' is your route name:

<li><a href="{{ route('member_dashboard') }}">Buat SPT</a></li>
0

no that's from resource/view/member_dashboard.blade.php ,sorry i forget the route code :

Route::match(['get', 'post'], '/spt_dashboard', '\App\Http\Controllers\AdminSptController@cbInit');
0
Route::match(['get', 'post'], '/spt_dashboard', '\App\Http\Controllers\AdminSptController@cbInit')->name('spt.dashboard');

...

<li><a href="{{ route('spt.dashboard') }}">Buat SPT</a></li>
Last updated 5 years ago.
0

i've done change that code

<li><a href="{{ URL::asset('spt_dashboard')}}">Buat SPT</a></li>

then the output is white screen

0

when im follow your suggest, i got error here :

(1/1) FatalErrorException Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Route [spt.dashboard] not defined. (View: C:\xampp\htdocs\crud\vendor\crocodicstudio\crudbooster\src\views\header.blade.php) (View: C:\xampp\htdocs\crud\vendor\crocodicstudio\crudbooster\src\views\header.blade.php) (View: C:\xampp\htdocs\crud\vendor\crocodicstudio\crudbooster\src\views\header.blade.php)

0

I've tried code in my own project.

route file:

Route::match(['get', 'post'], '/spt_dashboard', 'Dashboard\DashboardController@index')
->name('spt.dashboard');

Dashborad conroller:

dd(route('spt.dashboard'));

Result: "http://base.laravel/admin/spt_dashboard"

Last updated 5 years ago.
0

thank you very much for answer my dumb question :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

tegar tegarwahyu Joined 20 Mar 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.