Support the ongoing development of Laravel.io →

4,301 Threads

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

issue in converting mysql code to laravel

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

0 Likes
0 Replies
posted 2 years ago

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

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

Laravel Eloquent: When search criteria are missing

It's about Laravel Eloquent. I have a search filter programmed with four search criteria. Now it can...

0 Likes
2 Replies
posted 2 years ago

Buenas tarde me podrían ayudar con una relación de 3 tablas

No se que mas me falta para que funcione a la hora de guardar desde el controlador. La idea esque un...

0 Likes
1 Replies

Custom Route Binding when using withTrashed on routes.

I am having a problem with implicit model binding on routes for Soft Deleted Models. When using the...

0 Likes
1 Replies
Solved

Can not tags by using Laravel Spatie Tag library

In model:- use HasTags and when i have attach tags using like this $model->attachTags(['Tag 1',...

0 Likes
0 Replies
posted 2 years ago

Laravel 8 get data of last 7 days

I'm using laravel 8 and I want to list data of the last 7 days for each row and when no data is foun...

0 Likes
3 Replies

how to retrieve data with eloquent relation in laravel 8 api

i tried to create an api with laravel 8,when i try to retrieve data with eloquent relation it's gett...

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.

© 2024 Laravel.io - All rights reserved.