I get this error when I try my dislikeSQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: 'like' (SQL: delete fromnoteswhereid= like
I managed to get as far as last time same error presists... SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: 'like' (SQL: delete fromnoteswhereid= like)`
however I think in 'app/Models/Concerns/Likes.php' the 'use App\Like' should be 'use App\Models\Like'. For the rest I got a flaw less exp. just don't know how to solve that issue there.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
assuming you've done everything in the tutorial right you should have a route "/like"
You can check it with
php artisan route:list --name like
The button should look like this:
I believe you can figure out how to make the unlike button by yourself with the resources provided in the tutorial ;-)
Could u show how unlike works because I'm just managing to like but not dislike... #alsoBeginner
I get this error when I try my dislike
SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: 'like' (SQL: delete from
noteswhere
id= like
Sure, I think I'll update the article to add the views, stay tuned!
Aaaaand done. check it out!
ohh nice, couldn't have hoped for better. I'll leave a comment on how it went once I get to it again!
most welcome my friend. You can also check this out, it's a working implementation of the like system github.com/bdelespierre/laravel-li...
I managed to get as far as last time same error presists...
SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: 'like' (SQL: delete from
noteswhere
id= like)
`however I think in 'app/Models/Concerns/Likes.php' the 'use App\Like' should be 'use App\Models\Like'. For the rest I got a flaw less exp. just don't know how to solve that issue there.