Support the ongoing development of Laravel.io →

4,312 Threads

Form Model Binding, (Many to Many) Polymorphic Relations and sync()

Hello community, I am Laravel newbie, so please, be patient with me. My tables: artists - id - name...

0 Likes
0 Replies
posted 8 years ago

How do I search for a database row? very simple

I have a row I named Customers. It has a column named "name". I want the HTTP-request to b...

0 Likes
10 Replies
Solved

Have a problem with foreign key, while adding a record into database

Hello, I'm learning Laravel and I'm having a problem with foreign key when I want to add a new recor...

0 Likes
2 Replies
Solved
posted 8 years ago

Use relationships of relationships as results but intend pagination

I am doing a simple social network like twitter. So we can follow someone, vice versa. The relations...

0 Likes
1 Replies
Solved

Laravel adding pet abbilities information

My laravel app structed like this: People: Model & Controller Pets: Model & Controller. Has...

0 Likes
0 Replies

Use the timezone set by the user

Basically when I get the datetime column in my table I want to adjust its date and time base on the...

0 Likes
6 Replies

Checking hashes in database

Hey! For fun, I'm creating an API in Laravel to learn the framework and general new stuff. I have a...

0 Likes
2 Replies

advance eloquent multiple selection transitive table

I have a table containing multiple artist. While creating an event (updating event table) I need to...

0 Likes
0 Replies

Is there a example model somewhere?

Is there a example model somewhere? All I found is this: laravel.com/api/5.2/illuminate/database/elo...

0 Likes
4 Replies
Solved

Memory usage on long running script

I have a script which pulls data from an API to store in a local database. The data will then be pro...

0 Likes
20 Replies

L5.1 Unsupported operand types error on select element w/ default blank dropdown option

I have been porting a project from Laravel 5 to Laravel 5.1 and I am coming across an "unsuppor...

0 Likes
9 Replies
Solved

How to implement database caching inlaravel 5.2

I want to implement database caching in laravel 5.2 If any anyone any idea please share with me...

0 Likes
1 Replies

Date and Time difference

I am trying to achieve the fallowing: In the database i have a start_date , expiration_date, updated...

0 Likes
5 Replies
Solved
posted 8 years ago

Eager loading and constraint on linked field

I have a DB with employees: id name manager_id foreign key is manager id and pointing a...

0 Likes
2 Replies

Eloquent: Narrow search based off of foreign table.

Hey all! My database call looks like this essentially: $questions = \App\ContentLegacy::with('staff'...

0 Likes
2 Replies
posted 8 years ago

Many To Many Polymorphic Relations: how to retrieve not used tags

Hello, I'm playing with Many To Many Polymorphic Relations and I am almost there for my purposes. Gi...

0 Likes
4 Replies
posted 8 years ago

How do I assign a value to a guarded column while using the create() method?

So I get that adding columns to the $fillable variable of your Eloquent models can be a good thing....

0 Likes
0 Replies

Triple foreign key BelongsToMany Relations returns null in Laravel

I am implementing pivot table with multiple foreign keys Laravel 5 Eloquent. Already read these link...

0 Likes
0 Replies
posted 8 years ago

belongTo not going to the right database

Hi, I have a controller with a function: public function show(Activity $linkActivity, $id) { $act...

0 Likes
0 Replies

Eloquent Belongs To Many Relationship with non-standard fields not returning data

I've been wrestling with this relationship for a few days, and I can't seem to get any traction off...

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.