Support the ongoing development of Laravel.io →

4,608 Threads

DB::select with raw where

Hey, I'm having a hard time compiling the DB:: or preferably Eloquent code for a query that involves...

0 Likes
6 Replies
Solved
posted 11 years ago

Join working in SQL but not in Query Builder

I'm trying to find all records that exist in both listings and listings_queue tables. Laravel $count...

0 Likes
8 Replies

Saving Data from Laravel Form in Bootstrap Modal

Hi there i'm noob to laravel. I have some problem with form: originally from stackoverflow: http://s...

0 Likes
4 Replies

Can I add a where condition on the belongsToMany join?

Hi, having this relation public function programs() { return $this->belongsToMany...

0 Likes
0 Replies

How to get Image from MS SQL Server Database

How to get Image from MS SQL Server Database. Column DataType: Image ?

0 Likes
2 Replies

Change DB on fly when a user logged in

I am making a system where each user has a own db. so when user login then db should be change by ge...

0 Likes
1 Replies

Newbie: Trying to create a search function on laravel 5

I'm trying to make a search function with laravel 5 and it's not passing the results variable to the...

0 Likes
8 Replies
posted 7 years ago

SQLSTATE[42S02]: Base table or view not found: 1146 Table

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cruds.users' doesn't exist (SQL: select *...

0 Likes
2 Replies

How to develop a completely secure e-commerce website in Laravel?

I am fairly new to laravel. I have developed two small web app which doesn't require that much of at...

0 Likes
12 Replies

Use Eloquent to Query only master table

I use PostgreSQL with partitioning by one table. Here's my quesrtion. Is there any way to query ONLY...

0 Likes
0 Replies

MAX/GROUP BY Query

How would I do the following query using query builder? Preferably without using any raw sql :-) SEL...

janise liked this thread

1 Likes
5 Replies
posted 10 years ago

OrderBy DESC and after OrderBy ASC query

Helo!!, i need, help me please i'm confused with this query, sorry for my english :( I have this qu...

0 Likes
2 Replies

Sorting by related field

How do I orderBy a field that's in a related table as in: DB::with('relatedTable')->orderBy('rela...

0 Likes
2 Replies

Order and paginate a collection by a releted field using Eloquent

I have these models: Post, Category and User. My goal is to show a paginated and sortable table disp...

0 Likes
7 Replies

convert this query to laravel query

i wont to make this query : SELECT w.wilayah, a.penerima FROM ( SELECT DISTINCT w...

0 Likes
0 Replies

Reset password without users email address

Hi there, I want to simplify the password reset process for the user by determining the users email...

0 Likes
0 Replies

Get data of one to many, which is got from many to many

My Category model public function firms() { return $this->belongsToMany('App\Firm'); } My Fi...

0 Likes
0 Replies

Create menu with variables from database

Hello, I would create a simple menu based on categories which are they creating from database. I hav...

0 Likes
1 Replies

Eloquent sync - Which Event is fired?

I am currently building an application and I am using UUIDs instead of auto-incrementing IDs. To sim...

0 Likes
3 Replies

Events on Pivot table

Hi there, I've got two tables linked by a Many-to-Many relationship. users id users_items user_id...

0 Likes
1 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.