lundi 18 novembre 2019

laravel voyager remove underscore in breadcrumb

I'm creating a customer controller and route for laravel voyager.

This is my controller.

<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Http\Controllers\Controller;

class StructureController extends Controller {

    public function compare() {
        return view('admin.compare');
    }

}

And this is my routes file,

Route::group(['prefix' => 'admin'], function () {
    Voyager::routes();
    Route::get('/compare_structures', 'Admin\StructureController@compare')->middleware('admin.user');
});

I have only this inside view,

@extends('voyager::master')

But my breadcrumb in page looks like this,

Dashboard > Compare_structures

This is a screenshot of breadcrumb

is there a way to make this breadcrumb Compare structures ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire