Skip to content
Advertisement

Tag: laravel

Laravel 8.55 with Fortify showing Class ‘AppProvidersUser’ not found while login

I have installed laravel 8.55.0 and installed fortify with it for the authentication handling. Registration is working fine and login also validation is working fine. but when I enter email and password (either right or wrong) it’s displaying Class ‘AppProvidersUser’ not found I checked all files but cannot find the problem, can you guys please suggest a good solution for

Show the users that I liked using Laravel

I’m working on a small project using Laravel, and I would like to create a like and dislike system, so a user can like one to many more users. I already have a table called Users (default by Laravel), now I have created another table called favorite_user with id, user_id and liked_the_user. How can I get all the users that

can I throw custom error in laravel-lighthouse

is the any way that throw an error by GraphQLErrorError with no additional data except message. the current return data is it contains unnecessary data but I want something like: Answer You can throw your own exceptions, that will allow you to do that. Check https://lighthouse-php.com/5/digging-deeper/error-handling.html#registering-error-handlers.

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users, users’ doesn’t exist

I need to get these data from action_users table I have write a query in Mysql and it works fine but when I am trying to Convert SQL Statement into Laravel Eloquent i got this error i am using laravel 8 SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users,users’ doesn’t exist (SQL: select users.name, users.email, sum(action_users.point) from action_users,users

Foreach Condition with Ajax form submit button

I was trying to do for each condition for form but for some reason, it is submitting all foreach data with ajax. For some reason the response is i want to send only one option data to the cart. But, its adding all foreach data to cart Please help, Thanks Answer This will serialize all forms mounted on the webpage.

Laravel PUT relationship

Fiddling with Laravel and coming from Symfony, I’m trying to replicate some code. I’m trying to PUT a Suggestion model (overwritting anything, even relationships) and wanted to know the proper way to overwrite the model. Since tags attribute in fillable doesn’t exist, I certainly get an error (Undefined column: 7 ERROR: column “tags” of relation “suggestions” does not exist). Suggestions

Laravel Storage::disk(‘public_path’)->files() returning wrong path

In the following route, inspecting the image paths that this method returns, they all have “/categories/” at the start but this is not right, the actual path should be /public/images/categories/gallery/1 not /public/categories/images/categories/gallery/1 The following is an example of a route where it actually gets the correct paths So my question is, why is it in the previous route, it returns

Advertisement