Support the ongoing development of Laravel.io →

4,253 Threads

how best to merge two tables

I appologies if this is too simple, I'm still getting a good hang of laravel, I am trying to build a...

0 Likes 0 Replies

Auth()->user() -> magic vars not available inside scope clas

Closed - not solved - GH issue: https://github.com/laravel/framework/issues/42569 Laravel Version:...

0 Likes 0 Replies

Method [name] does not exist - Laravel 8

I'm having a problem with my Auth. So, I'm doing login but not using User models. I made my own mode...

0 Likes 1 Replies

Seeded users can't log in on Laravel or be found on Tinker

I'm working on a seeder that creates 3 users, one per each role I have on my app. When I run the see...

0 Likes 3 Replies

Laravel Eloquent , Pivot Table

Hello, i work on project about customer manager with an API. So, I have 4 Tables on my database : Ci...

0 Likes 1 Replies

Laravel eloquent Problem to access relationship

Hi, I am facing a problem with an eloquent relationship. Actually, I am new and trying to learn. I h...

0 Likes 2 Replies

Eloquent Filter n:1 relationship

hello, i wrote the following filter to filter a model independently by the columns. But how do I pro...

0 Likes 2 Replies

Factories - Create multiple records with a single request

Hello beautiful people, I am currently experimenting with super long running times on a feature that...

0 Likes 3 Replies
Solved

Database ID as hash?

It's about Laravel, when data is edited, the ID is always transferred via the URL. This is always a...

0 Likes 4 Replies

issue in converting mysql code to laravel

select * from ( SELECT projects.*, project__reports.status, project__reports.notes, project__reports...

0 Likes 0 Replies

Issue with hasOneThrough and limit of 999 results

Hello everyone, Laravel : v8.83.5 PHP : 7.4.28 MariaDB : 10.3.34-MariaDB I have a very strange error...

0 Likes 1 Replies
Solved

How can I have a user relationship from 2 other table

Hello All, My Database structure : users Table : id / name events Table : id / start / end activity_...

0 Likes 3 Replies

Laravel 8 Yajra Datatables - no database filtering

Hello, I am currently using the library of Laravel 8 Yajra Datatables (GitHub: https://github.com/ya...

0 Likes 0 Replies

Use foreign Key to display information from other table lae

Hi i am trying to retrive information using the foreign key but it doesnt work. `<?php namespace...

0 Likes 6 Replies

Problem with Laravel Database Prefix

Hello, I have a project where all database tables got a prefix. But now I have the problem that one...

0 Likes 3 Replies

Accessor in relation manyToMany

Hello, I have a ManyToMany relation and I have selected the fields that I want to display via the pi...

0 Likes 0 Replies

Relationship between Pivot table hasMany turns

Hi, I am trying to create a game with the tables listed below. There is a sample of the migration fi...

0 Likes 0 Replies

Customize / localize message of an ModelNotFoundException

After updating to Laravel 8, I figured out that the behavior of what happens if I use model binding...

0 Likes 1 Replies

Consultation in Laravel

I'm trying to get the name and id of a certain department using the query: $department = Department:...

0 Likes 2 Replies
Solved

Schema::hasColumn has problems in some scenarios

After model is set from(), in addGlobalScope, query field does not exist column through Schema::hasC...

0 Likes 0 Replies

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.

© 2022 Laravel.io - All rights reserved.