Support the ongoing development of Laravel.io →

4,597 Threads

posted 10 years ago

Raw SQL to Eloquent form

How do I translate this to eloquent or query builder? DELETE p1 FROM products p1, products p2 WHERE...

0 Likes
0 Replies
posted 10 years ago

Large volume processing

Hello Does any body have any code to batch process 200k+ records are calls and i am post processing...

0 Likes
1 Replies
Solved

How to sync() more than the primary keys?

I have a many to many relationship setup like this: Product Model: public function skus() { return...

ostap liked this thread

1 Likes
1 Replies
posted 10 years ago

artisan:migrate:refresh undefined method

http://laravel.io/bin/mNVV

0 Likes
1 Replies
Solved
posted 10 years ago

Would this hit the database once or twice?

Does the first line go to the database and wait for a response and then move on? Or are these combin...

0 Likes
6 Replies

Listing data with whereExists

I'm currently working on a browser game built with Laravel to get into laravel more. I'm currently r...

0 Likes
2 Replies

Query Builder to Eloquent

Hi, How can I convert this Query Builder Statement in Eloquent? return \DB::table('province')->jo...

0 Likes
5 Replies

Inforce an orderBy on a Model

I have a model where I always want the results to orderBy a certain way. Is there a way to enforce...

0 Likes
5 Replies

Status updates by Friends

Hey fellow Laravel friends, I'm trying to build status updates like Facebook. But my question is how...

0 Likes
3 Replies

Mysql read replicas

Hi guys, I'm new to laravel. This is a great framework. I'm ran into an issue that I don't know how...

0 Likes
0 Replies
posted 10 years ago

How to copy entire table in database?

#I want to know how to copy existing table through PHP script.. I am new to Laravel. I am trying to...

0 Likes
4 Replies
Solved

'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected' after returning from Laravel password reminder

'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected' after returning from Laravel pass...

0 Likes
0 Replies

Shopping Cart ID -> where to save for later?

I have a shopping cart ID that I'd like to save somewhere to pick up the cart later when the user co...

0 Likes
1 Replies

Eloquent class all() function causing server error 500

So I have a table on my database, with an eloquent class allowing me to access it. So far everything...

0 Likes
0 Replies

whereIn error: Prepared statement contains too many placeholders

I have a simple query like this: $userIdLists = Users::whereIn('id', $idList)->select(array('id')...

0 Likes
2 Replies
Solved

Laravel is crazy

Long story short. I created a migration named "create_music_table" which have following fi...

0 Likes
3 Replies

Many to many relation needs refresh after attaching new records?

I am writing an app that administers tests to students. I have a model that represents a prototype o...

0 Likes
1 Replies

Retrieve Data from 2 Tables

$orders = DB::table('orders') ->join('order_item', function($join) { $join->on('orders.id', '=...

0 Likes
1 Replies

Why is this eagerly loaded relationship returning me an empty array?

I have the following tables: lessons - lessonID - lessonName .. sections - sectionID - lessonID ref...

0 Likes
0 Replies

mongodb and laravel4

Hello, I would like to know some suggestion about using using mongodb with laravel4. thanks.

0 Likes
1 Replies
Solved

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.

© 2024 Laravel.io - All rights reserved.