Support the ongoing development of Laravel.io →

4,311 Threads

Laravel 5 updating session table user_id column

I'm trying to list online users for Laravel 5. But the user sessions table in my column was constant...

niyazialpay liked this thread

1 Likes
0 Replies

Eloquent question on saving relationship

I have two tables: Stat table contains 10 names with 10 targets (just a value) Statdata table contai...

0 Likes
1 Replies
posted 8 years ago

Fetching deep, nested relationships

Hello! I have some deep, nested relationships on a model and can't seem to figure out an easy way to...

0 Likes
1 Replies

SQL raw request modification to get collections

I have to use the following request to get data from DB: $users=DB::select('SELECT id,username, avat...

0 Likes
0 Replies

Define relation for Companies and Groups

Hi all I'm having some issues trying to set up a relationship for two Models. ExCompany and ExGroup....

0 Likes
2 Replies
Solved

Has Many Through with Pivot issue

Hi everyone. I have these tables and relative Models (http://laravel.io/bin/kWmrk) network_equipment...

0 Likes
0 Replies

How to Use 'DATEADD' function in Laravel join?

I've a Laravel 4 join as given below: return DB::table(Location::getTableName() . ' as l')->wher...

0 Likes
0 Replies

How laravel create (belogsTo, hasMany, etc..) dynamic properties over models?

For example, if I have the following code: class User extends Model { public function tasks()...

0 Likes
3 Replies
Solved

Class 'App\DB' not found

Hello friends,Please help me to fix this error. FatalErrorException in news.php line 54: Class 'Ap...

0 Likes
2 Replies
Solved

Saving to two models not sure how to get it to work

Hi i'm new to Laravel so I apologize for asking a easy questions, I'm just can't quite figure out my...

0 Likes
0 Replies

Count from a relationship table

Hello, I have those tables : question : id - integer name - string user : id - integer name - string...

0 Likes
0 Replies

Eloquent Relationship with 3 tables(User > Albums > Photos)

Hi, I have 3 tables USER, ALBUMS, PHOTOS USER has one to many relation with ALBUMS, ALBUMS has one t...

0 Likes
1 Replies

(Php Myadmin) Laravel MySql DB( Submited) Data Issue

Any One Can Help Me The Problem Is When User Create New Article The New Article Record Saved In Data...

0 Likes
0 Replies

How to move the User model to \App\Models\User ?

FatalErrorException in EloquentUserProvider.php line 126: Class '\App\User' not found So, I really w...

0 Likes
1 Replies

Viewing output of Artisan console command that defers to model

I have a console command that defers to a model. The model has Log::info("blah blah"); Whe...

0 Likes
0 Replies

Limiting returned characters from field, Laravel 5.1

Hi, can someone explain how can i fetch a text field which has a lot of text, but i don't want all o...

0 Likes
0 Replies
posted 9 years ago

Eloquent: Many-to-Many in-memory detach

Hi, Trying to wrap my head around Eloquent. When working with many-to-many relations, it seems that...

0 Likes
4 Replies

What is better cache or database?

I am developing web app on Laravel for registering students. Students pay for 12 lessons, They may j...

0 Likes
0 Replies

help with '::with' on eloquent query

I am trying the following query, however regardless of the value of $ status, it returns the same re...

0 Likes
1 Replies

Laravel Database connection problem

Hi, Facing problem with database connection with Laravel any version and using FileMaker Server13 as...

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.