->render()
work fine.- I run: composer require illuminate/html
- set
config/app.php
add providers
'Illuminate\View\ViewServiceProvider', 'Illuminate\Html\HtmlServiceProvider',
add aliases
'Form' => 'Illuminate\Html\FormFacade', 'Html' => 'Illuminate\Html\HtmlFacade',
now,
->render()
do not work, I try->render()
with{!! !!}
and<?php ?>
Whoops, looks like something went wrong. 1/1 FatalErrorException in LengthAwarePaginator.php line 126: Access to undeclared static property: Illuminate\Pagination\LengthAwarePaginator::$presenterResolver 1. in LengthAwarePaginator.php line 126 2. at HandleExceptions->fatalExceptionFromError(array('type' => '1', 'message' => 'Access to undeclared static property: Illuminate\Pagination\LengthAwarePaginator::$presenterResolver', 'file' => 'C:\wamp\www\laravel\vendor\laravel\framework\src\Illuminate\Pagination\LengthAwarePaginator.php', 'line' => '126')) in compiled.php line 1721 3. at HandleExceptions->handleShutdown()
1
votes
3 Answers
0
votes
Check your local and remote Laravel version by using artisan -v | grep version
.
In my case, they were different. I had a hard time updating it to match my local though. I didn't catch it because composer update
results to Nothing to install or update
even if I had cleared composer cache by composer clear-cache
and reinstalling all the dependencies in the vendor
folder.
I ended up deleting the whole project directory and cloning from source.
0
votes
Something is still out of date...
check version as suggested using:php artisan -V
and compare with https://github.com/laravel/laravel
In my situation i was need to delete: compiled.php
in storage
dir
then run composer update -vvv
and ... error disrepair :-)
composer dump-autoload
? – Kyslik