Support the ongoing development of Laravel.io →

4,603 Threads

Struggling to clear SQL error.

I am struggling to fix the following SQL error: SQLSTATE[42S22]: Column not found: 1054 Unknown colu...

0 Likes
2 Replies

Redis notification system

I'm looking into using the built in support of Redis in Laravel for a notification system. I'm tryin...

0 Likes
1 Replies

Eloquent Dynamic Where Queries - Database errors

Hello Laravel Community! I'm trying to use a Dynamic Where Query, however it end up throwing a error...

0 Likes
0 Replies

How to optimize the fetch to the morphTo relation

On Laravel "4.1.29", I have several different type of users. Each type of user has it's ow...

0 Likes
0 Replies

please help -- how to parse (use) aggragate query result

I have managed to evaluate the occurances of distinct values of a column via a raw query. The result...

0 Likes
0 Replies

# of occurances of distinct values in a column

Hi all, Suppose I have an orders table and it has a price field. The price values are between 1 and...

0 Likes
0 Replies

Pass database data to multiples views

Hy. First at all, sorry for my english, is not the best, but i try to do the best. I have a database...

0 Likes
0 Replies

how to add column in table migration table Already exists

how to add column in table migration updated_at ,created_at,delteded_at

0 Likes
3 Replies
Solved

how to delete row from table using Eloquent

this code in routes.php dont work Route::delete('user', function($id){ $newStudent =User::find($id)...

0 Likes
5 Replies

Aliasing and building derived database column names How to make this easy ?

This one has been bugging be for months and I so far I have not found an comprehensive solution to s...

0 Likes
3 Replies
Solved

OAuth multiple accounts on login?

I have a website in which you can login via facebook, twitter or normal register within the site sty...

0 Likes
0 Replies

Define multiple many-many relationships through single pivot table

Hi, I currently have a table which serves as a central link table for many-many relations between se...

0 Likes
0 Replies
posted 10 years ago

orderBy High Medium Low

Hello, I have a table with priority field which has values 'High', 'Medium' and 'Low'. I need the re...

0 Likes
9 Replies
Solved

Count relationship columns with where

Hi, Im trying to return the project with the todos linked to it. The todo has a status and I'm tryin...

0 Likes
1 Replies

What am I getting an IS NULL added?

here is what I have CONTRACTOR and BID table class Contractor extends Eloquent { public function bid...

0 Likes
1 Replies

Search in encrypted data

Hi, I save my data encrypted into the database with the Crypt class. Is it possible to search into t...

0 Likes
3 Replies
Solved

One to Many Relationship

Hi all, i am new to laravel and have a fictional Project to learn: I have two Models: Sports and Tra...

0 Likes
1 Replies
Solved
posted 10 years ago

Using ->pagination() on $q = DB::connection('foo')->select("select * from bar")->pagination(5)

In the Laravel docs, pagination is showing working with a single database set up. I use multiple dat...

0 Likes
1 Replies
Solved

Saving logic in a controller using repositories

I have created and included repositories using this tutorial: http://culttt.com/2013/07/08/creating-...

0 Likes
0 Replies

populate a drop-down list from database

Hi, I have 3 model tables: publishers, authors, and books (many-to-one relation between publishers-a...

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.

© 2024 Laravel.io - All rights reserved.