Open jayomayan opened 2 years ago
Check your PHP version, I had this issue using PHP 7.4 version, after update to PHP 8.0 worked.
Check your PHP version, I had this issue using PHP 7.4 version, after update to PHP 8.0 worked.
any solution if using php 7.4 ?
looks like there is now solution, only updating whole project to 8.0
Downgrading to v0.9.1 solves the problem.
composer require mediconesystems/livewire-datatables:0.9.1
In v0.9.2 was introduced the following line
But union types syntax has been available since PHP 8.0, although the composer.json file warranty PHP 7.4 support:
ParseError syntax error, unexpected '|', expecting variable (T_VARIABLE) (View: / [retracted]/resources/views/merchants.blade.php)
Has anyone encountered above error? I followed this https://codelapan.com/post/how-to-use-datatables-in-laravel-8-and-livewire