Closed salehasadi closed 4 years ago
Hello @salehasadi, I had the same problem as you. I was able to solve it changing the strict of mysql in config/database.php
to false
'mysql' => [
// ...
'strict' => false,
// ...
],
I don't know if it was the best solution, but it solved my problem.
Hello @salehasadi, I had the same problem as you. I was able to solve it changing the strict of mysql in
config/database.php
to false'mysql' => [ // ... 'strict' => false, // ... ],
I don't know if it was the best solution, but it solved my problem.
worked like a charm bro! Thanks
I close this issue as @fxamauri's solution made it work.
I simply added this property to my Book model: `protected $searchable = [ /**
and then ran this simple query in my controller:
dd(Book::search('test', null, true)->get());
but it throws this to me: