Skip to content

Tag: laravel-8

Cannot passing data to views

I’m using laravel 8 to make pass data to views pages. Unfortunately i have error saying ‘ Target class [PagesController] does not exist’ on my browser So here’s my PagesController.php Web.php index.blade.php i want to pass the variable $title to index.blade.php but have error. Tried so…

inserting user in database from regitration form laravel 8

i am working on a e-commerce website using laravel 8 for the first time i created a login and registration views, when i try registering first it flashed iccorrect email adresse in session error that is displayed in register.blade.php after fixing that it redirected me to an error page with this text : my rou…

Laravel 8: delete() does not delete from the DB

I’m working with Laravel 8 to develop my forum and I wanted to add some Like and Unlike functionality to question that have been asked by users. So Like function works fine but for Unlike, I got some problem. Here is the method for Unliking: And here is the form behind this: So the problem is it does no…

Laravel 8: Call to a member function user() on array

I’m working with Laravel 8 to develop my forum project, and I wanted to add some like functionality to question that has been asked on forum by users. So here is a form on question.blade.php: And then at LikeController, I added this: But now I get this error: Which is referring to this line: So what is …