| Question | Answer
| ----------------------- | -----------------------
| Issue or Enhancement | Enhancement
| Laravel Version | 7.22.4
| Project Version | 3.4
Description
I created a copy of "page.blade.php" called "pagefull.blade.php" with no changes in the file content.
But i am receiving the error "Undefined variable: adminlte" when trying to extend the new file.
Does anyone know how to fix this ?
Images



Hi @gdias1992 in that case you will need to register a new view composer. Try editing the file: vendor/jeroennoten/laravel-adminlte/src/AdminLteServiceProvider.php and change method registerViewComposers() like this:
/**
* Register the package's view composers.
*
* @return void
*/
private function registerViewComposers(Factory $view)
{
$view->composer('adminlte::page', AdminLteComposer::class);
// Add next new line...
$view->composer('adminlte::pagefull', AdminLteComposer::class);
}
Tell me if that works...
@Shidersz It's working now! Thank you!
Most helpful comment
Hi @gdias1992 in that case you will need to register a new view composer. Try editing the file:
vendor/jeroennoten/laravel-adminlte/src/AdminLteServiceProvider.phpand change methodregisterViewComposers()like this:Tell me if that works...