Support the ongoing development of Laravel.io →

988 Threads

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

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

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
posted 10 years ago

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

Laravel Search WHereHas JUST when has Value

Hello , I have a question . I want to search Tags ( Many to Many ) in My post , JUST if I select tho...

0 Likes
1 Replies
Solved

Retrieving 5 million records from database and comparing

Hello Everyone, I have a requirement of retrieving 5 million records from MySQL database and compari...

0 Likes
4 Replies
Solved

Eloquent Relationships

I have two models MediaProfile and MediaProfilesContent. MediaProfile has many MediaProfilesContent...

0 Likes
8 Replies
Solved

Eloquent ORM: Eager Loading Error: 'Call to a member function addEagerConstraints() on a non-object'

Unit Model: namespace App\Models\Qualification; use Illuminate\Database\Eloquent\Model; class Unit...

0 Likes
2 Replies
Solved
posted 10 years ago

Search Encrypted Data

Is there any way to search encrypted data? I have tried as below, but always end up as record not fo...

0 Likes
9 Replies
Solved
posted 10 years ago

How could I create custom Model Events?

Is possible to create custom model events as creating, created, updating, update, ...? Thanks in adv...

0 Likes
13 Replies
Solved

Unable to use Foreach loop with results of DB::Table

I'm unable to wrap my head around why I'm getting "Cannot use object of type stdClass as array&...

0 Likes
2 Replies
Solved
posted 10 years ago

One-to-one relation through pivot table

I have component A, users, which connect to component B, addresses. One user has one address, always...

0 Likes
12 Replies
Solved

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.