Support the ongoing development of Laravel.io →

4,602 Threads

Naming Convention For Modal And Database Table

Hello All I am confused with naming convention in laravel for model name and database table name.I h...

0 Likes
0 Replies

Eloquent chain relations

Hi all, I have tables Table Fields users id posts id, user_id, status_id status...

0 Likes
2 Replies
Solved

Changin session driver on the fly

Hi guys, I have a problem. I use two database in my application. I would like to change session driv...

0 Likes
0 Replies

Should you use models/repositories in Migrations?

Is it considered acceptable practice to use models in migrations? I've seen many code snippets where...

0 Likes
1 Replies

is it possible to convert data during migration?

I'm going to change some models' relationship from one-to-many to many-to-many. Is there a way do ap...

0 Likes
0 Replies

condition on belongsToMany

can i get data in single query ? $author = Author::where('id', '=', $authorId) ->where('salt', '=...

0 Likes
1 Replies
posted 10 years ago

Query builder -- map to array object

Hi, Method get from query builder return array of stdClass object. It is posible change stdClass to...

0 Likes
1 Replies

Multi-level parent child categories

Hello, I'm very new to laravel and am converting an application I wrote earlier in very unstructured...

0 Likes
2 Replies

Handling Redis Session Expections

I would like to set up Redis to handle sessions, however, I found an issue. When I stop the Redis se...

0 Likes
0 Replies

Should I rely on an abstract structure when doing a php application?

Ok.. so I built this real simple RBAC using Laravel. In my design I filter user's permissions based...

0 Likes
0 Replies

Access data from multi nested relations

Hi, i use the following code to get my data with Eloquent: $campaign = Campaign::find(1)->with(...

0 Likes
0 Replies

Joining two tables using Eloquent for multiple database connections

Hello, I am facing a problem with joining two tables using Eloquent for multiple database connection...

0 Likes
0 Replies

Relationships With Staff and statuses

I'm attempting to make a relationship between my roster table and roster_statuses table. I'm wonderi...

0 Likes
5 Replies
Solved

How can i fetch dynamic ip address ?

I have this $location = GeoIP::getLocation('46.188.214.51'); my table looks like this | id | mood...

0 Likes
1 Replies

Help optimising a query

I have a users table and profile (one to one) table. I need data from both to display on their publi...

0 Likes
3 Replies

Migration database table

Is it possible to without core hacks to change the table laravel uses for migration history (current...

0 Likes
1 Replies

Can't sign in anymore with new password after requesting new password

I've been doing this laravel course here https://www.youtube.com/watch?v=nSOPuYkllYQ Everything work...

0 Likes
5 Replies

Distant Relationship HasManyThrough

I'm sure this is a basic question, but I have the following: Model "A" which has many of &...

0 Likes
0 Replies

Bootstrap row class for every 3 columns

Hello, i want to print 12 articles with pagers using bootstrap 3 theming: @foreach($category->...

0 Likes
4 Replies

Has Many Through

Hi, I do not know how to make a relationship, my structure communities id - integer name - s...

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.