@@ -14,7 +14,7 @@ class {{pluralStudly}}Controller extends ApiController
1414 *
1515 * @return Builder
1616 */
17- protected function getBaseQuery(): Builder
17+ public function getBaseQuery(): Builder
1818 {
1919 return {{singularStudly}}::query();
2020 }
@@ -24,7 +24,7 @@ class {{pluralStudly}}Controller extends ApiController
2424 *
2525 * @return array
2626 */
27- protected function getAllowedFields(): array
27+ public function getAllowedFields(): array
2828 {
2929 return array_diff(\Schema::getColumnListing('{{tableName}}'), (new {{singularStudly}})->getHidden());
3030 }
@@ -34,7 +34,7 @@ class {{pluralStudly}}Controller extends ApiController
3434 *
3535 * @return array
3636 */
37- protected function getAllowedIncludes(): array
37+ public function getAllowedIncludes(): array
3838 {
3939 return [
4040 // allowed includes
@@ -46,7 +46,7 @@ class {{pluralStudly}}Controller extends ApiController
4646 *
4747 * @return array
4848 */
49- protected function getAllowedAppends(): array
49+ public function getAllowedAppends(): array
5050 {
5151 return [
5252 ];
@@ -57,7 +57,7 @@ class {{pluralStudly}}Controller extends ApiController
5757 *
5858 * @return array
5959 */
60- protected function getAllowedSorts(): array
60+ public function getAllowedSorts(): array
6161 {
6262 return [
6363 // allowed sorts
@@ -69,7 +69,7 @@ class {{pluralStudly}}Controller extends ApiController
6969 *
7070 * @return string
7171 */
72- protected function getDefaultSort(): string
72+ public function getDefaultSort(): string
7373 {
7474 return '{{defaultSort}}';
7575 }
@@ -79,7 +79,7 @@ class {{pluralStudly}}Controller extends ApiController
7979 *
8080 * @return array
8181 */
82- protected function getAllowedFilters(): array
82+ public function getAllowedFilters(): array
8383 {
8484 return [
8585 // allowed filters
0 commit comments