If 'member_dashbiard' is your route name:
<li><a href="{{ route('member_dashboard') }}">Buat SPT</a></li>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');
Route::match(['get', 'post'], '/spt_dashboard', '\App\Http\Controllers\AdminSptController@cbInit')->name('spt.dashboard');
...
<li><a href="{{ route('spt.dashboard') }}">Buat SPT</a></li>
i've done change that code
<li><a href="{{ URL::asset('spt_dashboard')}}">Buat SPT</a></li>
then the output is white screen
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)
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"
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community