FatalErrorException in Handler.php line 25: Uncaught TypeError: Argument 1 passed to crud\Exceptions\Handler::report() must be an instance of Exception, instance of ParseError given, called in C:\Users\UDS-digital\Desktop\crud\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php on line 73 and defined in C:\Users\UDS-digital\Desktop\crud\app\Exceptions\Handler.php:25 Stack trace:
0 C:\Users\UDS-digital\Desktop\crud\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(73): crud\Exceptions\Handler->report(Object(ParseError))
1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(ParseError))
2 {main}
thrown
<?php namespace crud\Http\Controllers; use Illuminate\Support\Facades\DB;
class PessoaController extends Controller{
$produtos = DB::select('select * from pessoa'); dd($produtos); public function lista(){ return('listagem de pessoas'); }
}
?>