Support the ongoing development of Laravel.io →

4,311 Threads

How to check if user has already invested on a project

I am working on social app where user can invest on many projects and each project corresponds to a...

0 Likes
1 Replies
Solved

Save data into Many To Many relationship

hello , i have some troubles when i try to save into a manytomany's relationship basically i don't k...

0 Likes
0 Replies
posted 8 years ago

How to pass pivot table extra attributes while creating a model?

Users table structure: users id, name, username, password, email, created_at, updated_at Categories...

0 Likes
0 Replies

Laravel Loading Animation

I am using the Laravel framework for my PHP Webapp. I am executing some SELECT queries which can tak...

0 Likes
5 Replies

Properly save Relationship data

I am attempting to save a related model (Access.php) from my AuthenticationController on login Authe...

0 Likes
0 Replies
posted 8 years ago

Insert data into multiple tables from view

I have a view with two elements: <input type="file" name="img"/> <input...

0 Likes
1 Replies

[Laravel 5] Where is the models folder?

Hi, I've just installed the Laravel 5 dev-develop version. However, I only see one model, and that s...

0 Likes
10 Replies
Solved

Speeding Up Eloquent Queries

Hi, Say I have some queries like this: public function order($orderby){ \DB::connection()->disa...

0 Likes
0 Replies

Is it better caching SQL queries or decreasing number of requests?

Hi, folks! Let me explain step-by-step what I'm trying to achieve: My application is backend-fronten...

0 Likes
0 Replies
posted 8 years ago

How to add custom attribute in model that without in database for temporary value?

I want to store custom value that is not field in database. My point is try to select some rows and...

0 Likes
2 Replies

Self reference table

I didn't set the model for this table. But i would like to know how to process it in the view. Do I...

0 Likes
2 Replies

Using Repository Pattern with Laravel

Is it worth enough to give up the "comforts" provided by Eloquent to make use of the repos...

0 Likes
1 Replies

Eloquent relations issue

Hi guys! First things first. I have this tables: beds id name size room status hotel created_at upd...

0 Likes
0 Replies

How to keep the column value hidden or anonymous

Hello Friends, I am developing one bidding system. I have one column where bidders name is shown. Bu...

0 Likes
1 Replies
posted 8 years ago

LengthAwarePaginator return full list

I have this paginator $products = new LengthAwarePaginator( $collection-...

0 Likes
1 Replies

Eloquent relationship: Relation table with pivot table

I have created three tables, A, B and C. A and B have a ManyToMany relationship so I created A_B tab...

0 Likes
1 Replies
posted 8 years ago

Laravel Route Model Binding to Route::controller()

I've got the following routes: Route::controllers([ 'auth' => 'Auth\AuthController', 'pas...

0 Likes
0 Replies

How to send relationship data to view? One to many relationships!

Hello, friends! I need to make drop down list with categories! Somehow, something is not working :(...

0 Likes
5 Replies

Key Value pair with Eloquent

Hello, I am trying to make Key/Value system on Eloquent because I need it to extends my users table....

0 Likes
2 Replies
posted 8 years ago

Relationship functions interchangeable

I'm just wondering why Laravel behave in this manner when it comes to hasMany() relationships in Elo...

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