Support the ongoing development of Laravel.io →

4,300 Threads

Foreign key constraint is incorrectly formed

http://laravel.io/bin/Nk3v#2 I thought I had everything working, until I added this last foreign key...

0 Likes
0 Replies

Eloquent error: Integrity constraint violation

Hi, this is my first thread so if I doing wrong some things please don't hate me :) I'm using Migrat...

0 Likes
2 Replies
posted 10 years ago

Create a model instance including its relationships

I'm trying the create a model instance including it's relations, but i can't seem to find a proper w...

0 Likes
1 Replies

Routing for a simple search

I want to know the best and simple way to setup routing for this: I have a form that posts to /prici...

0 Likes
3 Replies

Creating Eloquent model with 2 columns?

tableA that contains 2 particular columns. idA, idB tableB has 1 column that those are mapped to. id...

0 Likes
2 Replies

Eloquent select from related table where...

Hi, I've read the eloquent docs, but can't seem to find the answer - am I missing something? I am tr...

0 Likes
2 Replies
Solved

Using Ajax to retrieve data with user input

Hi all, I have an issue I can't seem to figure out..... I want to use Ajax/jQuery to get data from a...

0 Likes
8 Replies
posted 10 years ago

Access restriction in relationships

Hi folks, I've got customers, and projects which belongs to customers. There's a customers table, an...

0 Likes
4 Replies

$_GET isset with laravel?

I'm working with Laravel. Trying to work out the best conversion for below. Would I use query builde...

0 Likes
4 Replies

Laravel Relationships - Getting Related Eloquent Objects in a query.

Hi All, I cannot find this in the docs or on SO, so i figured I would post my question here: I have...

0 Likes
1 Replies
Solved

Last record in Eloquent model

Laravel has a first method when accessing an Eloquent model, but is there a way to get the last reco...

0 Likes
1 Replies
posted 10 years ago

SQL Order By list of strings? but in Eloquent

I wonder if it is possible to order by list of strings using eloquent? http://stackoverflow.com/ques...

0 Likes
2 Replies
Solved
posted 10 years ago

Where to put thise because windows not support artisan tinker

Find By Id Using find() $post = Post::find(2); $post->setHidden(['content','read_more','updated_...

0 Likes
0 Replies

Nested query in FROM

Hi! I'm really newbie and I'm not sure how to do queries with Eloquent. My SLQ query is this: SELECT...

0 Likes
4 Replies
Solved

using alias in a join

i have this join: $mains = Main::join('builds', 'mains.build_id','=','builds.id')->where('builds....

0 Likes
1 Replies

using javascript to set a variabe

i have an form that is set to upload an image and update a database with the image data (if needed)....

0 Likes
2 Replies
Solved

How to get timestamp integer instead of Carbon object

My application has to adapt to an existing database which uses integer timestamps instead of string...

0 Likes
2 Replies
Solved

Please Help Me to get this solve

I want to display 'Recent Comments' from comments table, including HotelName related to that Comment...

0 Likes
1 Replies
Solved
posted 10 years ago

How can I access additional models from a pivot?

I have three primary tables, Accounts, Users, Roles. All accounts are owned by a user but not all us...

0 Likes
6 Replies
posted 10 years ago

Consuming JSON via REST

Looking at interest at Laravel as a PHP framework. I have a question relating to its ability to use...

0 Likes
0 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.