Cannot find method getHeading when setting custom list view
Added this line of code on the CRUD controller:
$this->crud->setListView('vendor.crud.list');
Add a new file on my directory views/vendor/crud/list.blade.php where the list.blade.php file is from https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/list.blade.php
Should show the list but rendered the custom file.
Error: Call to undefined method Backpack\CRUD\CrudPanel::getHeading() (View: {my-directory-here}\inventory\resources\views\vendor\crudlist.blade.php)
NONE
"php": "^7.1.3",
"backpack/crud": "^3.4",
"backpack/permissionmanager": "^3.12",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0"
Hello there! Thanks for opening your first issue on this repo!
Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps _a lot_ in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Backpack communication mediums:
backpack-for-laravel tag;Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome _awesome_ community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.
Thank you!
--
Justin Case
The Backpack Robot
I think getHeading() was introduced in 3.5 and you are using 3.4 with a list.blade.php from 3.5 version.
Let me know if that's the problem.
BINGO @pxpm ! :-)) I think so too. @neilodiaz let us know if it wasn't that and we'll reopen this. Cheers! Thank you @pxpm !
If you retrograded from 3.5 to 3.4, run : php artisan view:clear (got the same error today)
Most helpful comment
If you retrograded from 3.5 to 3.4, run : php artisan view:clear (got the same error today)