I want to create my own url to point to a specific function in controller. It says not found.How i can add my own url to voyager admin?
I have new laravel5.8 & voyager1.2 installation. I can create predefined routes but i can not add new route or url.
Below is my view
<a href="" class="btn btn-success btn-add-new"><i class="voyager-plus"></i> <span></span>
</a>
Here is how my routes file
Route::group(['prefix' => 'admin'], function () {
Voyager::routes();
Route::get('yourcontroller/order', ['uses' => 'Controller@Yourfunction']);
Route::get('yourcontroller/select_type', ['uses' => 'Controller@otherfunction']);
});
The first route yourcontroller/order is working as it is pre-defined while the second route yourcontroller/select_type is not working.
I want to run otherfunction by visiting this url
http://localhost/admin/controller/select_type
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire