Support the ongoing development of Laravel.io →

979 Threads

How to create a collection referencing multiple relations th

I have an issue that I'm running into and can't seem to find an answer or figure it out myself. So h...

0 Likes 1 Replies
Solved

unable to fetch data from profile class using user class.

=> Illuminate\Database\Eloquent\Collection {#4087...

0 Likes 2 Replies
Solved

Bind parameter on DB::select(DB::raw())

Dear Sir, I have some weird about binding parameter using DB::select(DB::raw()). I had tried to use...

0 Likes 2 Replies
Solved
8 Jul, 2020 at 07:47

Recieving MySQL Store Procedure return Value

I can get the returned value of a stored procedure using this code below `DB::select('call generateC...

0 Likes 2 Replies
Solved

how instead call an Eloquent STATIC method from controller

Laravel 6.x the below works… how instead to call an Eloquent Laravel db method??? how instead call a...

0 Likes 5 Replies
Solved

Eloquent relation count problems

Hi, I'm currently having the following problem that $eloquentEntity->relation->count() and $el...

0 Likes 1 Replies
Solved

Sql Server Date format issue

Hello, First of all I'd like to say that I have no other choice but using SQL Server ( and IIS as we...

0 Likes 6 Replies
Solved

Manage Collection of Model Objects

I'm trying to make my notifications for Laravel 6 mail out effectively. I have a model (Event) that...

0 Likes 1 Replies
Solved

class app\model not found

showing the error: Symfony\Component\Debug\Exception\FatalThrowableError Class 'app\Modo' not found...

0 Likes 2 Replies
Solved
2 Apr, 2019 at 12:07

Detach Pivot with 3 keys

It has the following tables: companies, addresses and company_address. I want to remove a record fro...

0 Likes 4 Replies
Solved
21 Mar, 2019 at 02:39

Eloquent result different from MySQL result

Hi all. I have 3 tables in Laravel: doctors, clinics and clinic_doctors. Doctors have relation: publ...

0 Likes 1 Replies
Solved

'orWhere' not work eloquent model relationship

Laravel Version: 5.7.25 PHP Version: 7.2.14 Database Driver & Version: MySQL 2ª gen. 5.7 We ar...

0 Likes 1 Replies
Solved

Laravel 5.7: User-tables in other database

Hi, In my Laravel project, my users-table and password_resets-table are located in the database Inte...

0 Likes 2 Replies
Solved

Fetching view from DB

Hello!! I am new in Laravel society. :) And I stuck with something. I made view in database and I do...

0 Likes 5 Replies
Solved

How to select between with two fields

I have some problem with my code for select shift_id with just give time, looks my records $waktu =...

0 Likes 6 Replies
Solved
17 Oct, 2014 at 04:42

Nested many-to-many relationships

I have my eloquent models set up with user has many-to-many roles and roles have many-to-many permis...

0 Likes 7 Replies
Solved

SQLSTATE[HY000] [1045] access denied for the user: 'homestead'@'@localhost' (password: YES)

Well I'm new to laravel, & still learning it. Basically when i use php artisan migrate, it migra...

0 Likes 7 Replies
Solved

Connect 3 tables with 2 pivot tables

I'm trying to find all rows in c table (see DB schema) associated with one row in a table. Connected...

0 Likes 5 Replies
Solved

SetConnection doesn't work in a non-static eloquent context

Hello, I'm trying to do this (Laravel 4.2) : In database.php 'default' => '', In a function $mod...

0 Likes 4 Replies
Solved

Has Many Through Relationship Depth

Hey Guys, I am just trying to understand the depth of the has many through relationship as well as i...

0 Likes 4 Replies
Solved

Thanks to our community

Solutions given in the past year.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2021 Laravel.io - All rights reserved.