Support the ongoing development of Laravel.io →

4,587 Threads

Many to Many Relationship problem

So i have problem about many to many relationship implementation in laravel I have two model, User a...

0 Likes
1 Replies
Solved

Eloquent ORM relationship array trouble

Hello, I'm stuck with this problem. I have these databases: -users with id, first_name et cetera......

0 Likes
0 Replies

Fortrabbit issue with angular post

Hi, I have just uploaded my Laravel backend and Angularjs front to Fortrabbit and I am having issues...

0 Likes
4 Replies

problem in accessing value from parentmost table.

I've four tables.User,Post,Reply and Confirm tables. And the relation is User has many posts posts...

0 Likes
2 Replies

Assigning Variable to URL

Route::get('/p/{id}/{name?}', array( 'as' => 'viewItem', 'uses' => 'HomeController@viewIte...

0 Likes
4 Replies
posted 10 years ago

Loading posts for specific domains

I'm building my first laravel app, which is a multidomain app with 6 domains. I'm sorry if this is a...

0 Likes
7 Replies

Can I set database credentials based on environment

I'm deploying an app with fortrabbit, as you may know, fortrabbit does not uses localhost and have o...

0 Likes
2 Replies
Solved

Eloquent model default scope.

Hi all, I am looking to create two models, both on top of the same table. I know that I could do wit...

0 Likes
2 Replies
Solved

Plans about VoltDB support - libraries

Hello Laravel community, Has someone initiated the development of libraries to integrate VoltDB into...

0 Likes
0 Replies

Add two months to the current date

Hi, I am trying to add two months to the current date : $sale->sale_date = date('Y-m-d 00:00:0...

0 Likes
8 Replies
Solved

from QueryBuilder query to EloquentORM query

Hi, In my model I have users. Each user may have some roles. Each role have some allowed activities....

0 Likes
0 Replies

Default value for all Eloquent attributes

Hi, I'd need to set a default value for any Eloquent model attribute. So, for example if I try to ge...

0 Likes
6 Replies

Laravel Pagination in eloquent ORM with()

have used pagination in laravel and that time the query is very simple. So I have manage to work on...

0 Likes
0 Replies

Storing multile selections into database

Hello, I have a form with select name "interests" and i present multiple options so i am u...

0 Likes
4 Replies
Solved

Is it possible to set properties to the authenticated user?

In the User model, I've created a property called groupMembership and a method called setGroupMember...

0 Likes
3 Replies

Adding Select statement to ORM

Retrieving A Record By Primary Key $user = User::find(1); var_dump($user->name); Is there anyway...

0 Likes
4 Replies
Solved

Relation with dynamic entity

Hello guys, I got this big question on this scenario: I'm building a easy post and comment system, b...

0 Likes
2 Replies

Related table, possible issue with table name?

Hi, I have a simple scenario here that is bugging me. There are two models: class DbNation extends E...

0 Likes
3 Replies
Solved
posted 10 years ago

Mocking a Stored DB Connection

Hi Guys I am saving a connection to a remote database in a static class variable. I can mock the con...

0 Likes
1 Replies
Solved

Authenticated sessions vs session data

Is there a way to distinguish between an authenticated user session, and more transient session data...

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