Skip to content

Query table using multiple foreign keys

So I’m just messing around with a NodeJS application, and I’m trying to implement a permission system using my database. It’s my first time working with any kind of SQL environment, so please correct me if I’m doing something terribly wrong. I have the following tables: So there are 2 …

Laravel and Eloquent – applying different filters

I’m feeling stuck. 🙁 I want to be able to execute different SQL query, depending on the selected filters in my form: //My initial query without any filters is this: $dbQuery=”SELECT * FROM “…