1

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?

siddiq
  • 1,693
  • 3
  • 17
  • 44

1 Answers1

1

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

Mojtaba Hn
  • 457
  • 2
  • 10