Support the ongoing development of Laravel.io →

4,314 Threads

New to Laravel - Correct way of working

Hi, Bit of background - I have a PHP project, it works ok at the moment. One problem is that its me...

0 Likes
2 Replies

Call to undefined method Illuminate\Database\Query\Builder::groups()

I am creating a website that helps users build config files for different applications. How ever, I...

0 Likes
1 Replies

Calling PgSQL function before accessing a Eloquent object property

Hi, I'm using PostgreSQL + PostGIS and I need to call ST_AsText(geom) function when I access a prope...

0 Likes
0 Replies

belongsToMany relationsship on custom pivot model

Hi! I'm facing a problem with a belongsToMany relationsship on a custom pivot model I cannot solve....

0 Likes
8 Replies

Getting ->diffForHumans() to work on other timestamp fields

Hi, I've been raging for a few hours trying to achieve this. 'created_at' and 'updated_at' both have...

0 Likes
4 Replies
Solved

How to get data from json without index

Hello I need get data from json without index to populate data in dropdownlist $agents = DB::table('...

0 Likes
2 Replies

Multiple user have to confirm news in a board

in a message board several users to confirm the entries. how can I realize the easiest? it will also...

0 Likes
0 Replies

what type array return in view

Hello what type array return in view from this varible $agents=DB::table('users_agents') ->sel...

0 Likes
0 Replies

SoftDelete - Problem

Hi, I am using SoftDelete in many models of my app by defining it like this: class Entries extends E...

0 Likes
0 Replies

Laravel failed to mock Eloquent::save using Mockery for Controller testing

Hi guys, iv been struggling with this for hours and hours. I cant seem to get Mockery to work with t...

0 Likes
1 Replies

Eloquent belongsToMany() with wherePivot() and has() -> SQL ERROR

I've got these two database schemas, I'll dumb them down for now. Schema::create('matchups', functio...

0 Likes
3 Replies
posted 10 years ago

Model::join and releations

Hello together! I am stuck and hope someone can push me in the right direction. I have a one to many...

0 Likes
3 Replies

laravel error auth include domain groupe multi namespace groupe

I use laravel 4.2 and in my route file i use this code Route::group(array('domain' => 'www.eee.do...

0 Likes
0 Replies

Custom SQL queries

I'm learning Laravel and have a custom query that i'm working on. How do I pass a variable string in...

0 Likes
3 Replies

Getting values from domain tables.

I have the following tables: Time_Tracker time_tracker_id time_tracker_module_id (FK with Modules) t...

0 Likes
2 Replies
Solved

Sentry how get user id from session or db

Hello Sentry how get user id from session or db Sentry::getUser()->id; Thanks

0 Likes
1 Replies
posted 10 years ago

How to get unknown relation

Hi All, I'm using a many to many polymorphic relation; table attachments table attachables table ite...

0 Likes
0 Replies

Laravel5 and Elequent

I am learning Laravel and have been learning Laravel 4. I am now learning 5. Where has eloquent gone...

0 Likes
1 Replies

Help Me To Fix My Controllers

I have a controllers like below : public function show($id) { $registrasi= Registrasi::find($id); if...

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

© 2025 Laravel.io - All rights reserved.