Skip to content

Tag: laravel

Laravel relation from a pivot

I have a relation that I cant figure out my current application looks like this Models Tables Now a tournament can have just some of the users participate in the tournament so I’ve created the below To store users that are participating in a tournament from the team. How should this look in terms of elo…

Trying to use string as foreign key in laravel

I am just a beginner and trying to use string as foreign key in laravel but getting this error while fetching the data:- SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘read’ in ‘where clause’ (SQL: select from as sender_id, count(from) as messages_count from messages where to …

Laravel 8 Does Not Show Data From DB

I’m working with Laravel 8 and I have made a resource Controller to return some results from MySQL table so index() method of this Controller holds: At at index.blade.php I added this: So as you can see, it look fine but the problem is it does not show me any output! I mean no results and no errors at a…

Crud Destroy isnt Destroying [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 1 year ago. Improve this question Im doing my first CRUD(Vue-Laravel) and im getting an error in the bac…

How to attach when enter a text in laravel?

After login a user, The user enters this skills form, selects the skills. A user can enter multiple skills, and save in database. The field of name skill_name level And in table skill_name level user_id I don’t know if the skills and skill_user table should be, or not, I don’t know. What would you…