0
votes

I created a new database through Voyager admin and created BREAD for that table. Now I need to add additional methods to that controller.

I tried to create a custom controller by following this. But the default actions (CRUD) of the controllers are gone.

Without disturbing the existing functionalities of the BREAD I need to add a few more methods in that controller. Is this possible?

1

1 Answers

0
votes

I believe you missed to extend voyager's default BREAD controller. for example let say we want to extend a Controller for our Product Model. so we make a ProductController like :

<?php
namespace App\Http\Controllers;

class ProductController extends TCG\Voyager\Http\Controllers\VoyagerBaseController{

    //add more functions
}

good luck