Support the ongoing development of Laravel.io →

4,585 Threads

posted 10 years ago

Foreign key cross-databases error (editted: removed small mistake)

I made migration with foreign key 'user_id' to a table 'users' that is in another database: This ge...

0 Likes
0 Replies

Eloquent - select single value from database

Hi all, I'm creating a drop down list that gets populated using data from a database. Everything wor...

0 Likes
3 Replies

authenticate from second database

I have a form with a 'name' textfield. When i press send laravel checks if the username exists. If s...

0 Likes
2 Replies
Solved
posted 10 years ago

Use existing database in Laravel 4

Hi! I have already created a mySQL database in phpmyAdmin, so I don't really want to use the the Sch...

0 Likes
2 Replies
Solved

How we create foregin key in phpmyadmin in laravel4.

How we create foregin key in phpmyadmin in laravel4.

0 Likes
0 Replies

Laravel 4.x , module system able to install/enable/disable via panel ?

Hello guys, i just started to use laravel, and i was able to create a new HMVC system following this...

0 Likes
1 Replies

problem with retrieving data from database

hi , i am new in laravel & stuck in a stage pls help me ... I am trying to authenticate a user &...

0 Likes
1 Replies

Eloquent has no handling with malicious data??

I did a simple query like: $query = "sdsad'sa"; Spot::where('title', 'like', '%'.$query.'%...

0 Likes
8 Replies

to many queries and long load

Im build my app localy, and Im afraid after Ill get some traffic in to it it will simply crash. and...

0 Likes
3 Replies

Problem with Eloquent - Case sensitive condition

Hi. I perform $a = Items::where('code', '=', $code); In the code column there are various entries, u...

0 Likes
3 Replies

Calling model method from controller

I have this in my car.php model public function bySortOrder() { return $this->orderBy('so...

0 Likes
3 Replies
Solved

Eloquent - Get Post where parent of parent id = XX. It's possible?

I'm trying to get a Post inside a Session, but between Post and Session I have a Category Model. Eac...

0 Likes
1 Replies

Make this query in Eloquent

Hi Can we do this query in Eloquent $tagString = implode (',', $tags); return DB::select (DB...

0 Likes
1 Replies

Help with relationship

Sorry for my english, is not very good. I have a User model and I have a Post model. two models have...

0 Likes
2 Replies
Solved

Knockout.js, Backbone.js, et al.?

What is the relationship between these data-binding frameworks and Laravel? Does Laravel implement s...

0 Likes
1 Replies

Question about relationship.

Guys, good morning. Question about relationship. In this query it brings me a student and two servic...

0 Likes
2 Replies
Solved

Joined table IDs are returned in the Model Collection instead of the main table IDs

Hi Guys, I have a query which it's toSql result is: select * from `jobs` left join `locations` on `j...

0 Likes
8 Replies

Eager Loading and Relations.[URGENT]

I'm trying to relate a user model and a comments model. My user model has the following code.. clas...

0 Likes
4 Replies
Solved

Seeding from migration

This may be a weird question, but is there a way to seed the db from a migration? The reason is that...

0 Likes
1 Replies
Solved

Increment in Query Builder

DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...

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.