-2

在此处输入图像描述Route::resource('/branch','BranchController');

但,

ErrorException (E_ERROR) 路由 [branch.viewbranch] 未定义。(查看:/home/praveenkumar/Desktop/makeshbakery/resources/views/layout/sidebar.blade.php)(查看:/home/praveenkumar/Desktop/makeshbakery/resources/views/layout/sidebar.blade.php)(查看: /home/praveenkumar/Desktop/makeshbakery/resources/views/layout/sidebar.blade.php)[lara][1 ]

4

1 回答 1

0

路由器资源将生成示例:

(get) index => route('branch.index')
(get) show => route('branch.show', $id)
(get) create => route('branch.create')
(post) store => route('branch.store')
(get) edit => route('branch.edit', $id)
(put/patch) update => route('branch.update')
(delete) destroy => route('branch.delete', $id)
于 2020-03-19T03:14:55.343 回答