Support the ongoing development of Laravel.io →

4,312 Threads

Do factories use transactions?

I also posted my question on laracast, but perhaps anyone here has the answer. Topic on laracast I'm...

0 Likes
0 Replies

Query items that have all categories

Hi, I have a Shops model associated to services, using a pivot table: public function services() {...

0 Likes
1 Replies
Solved

join pivot data in query (Many To Many Polymorphic Relations)

i have Many To Many Polymorphic Relations. post morphedByMany(postA) post morphedByMany(postB) post...

0 Likes
0 Replies

how to use @each('view.name', $jobs, 'job') to make clear loops??

Hi guys. for making a list of categories and subcategories in 3 levels I used foreach and if loops a...

0 Likes
0 Replies
posted 8 years ago

Creating unique id when creating model

Hi, I would like to generate a unique code whenever a new object of a model is created. Therefore, I...

0 Likes
2 Replies
Solved

lockForUpdate on Controller->Service->Repository->Model pattern

Hi, I have a Controller that needs to process a form and then do some database checks that involve l...

0 Likes
0 Replies

How to use a count-aggregate function directly on a pivot table?

I am looking for the equivalent in Eloquent/ Laravel to the SQL statement SELECT label_id, COUNT(*)...

0 Likes
2 Replies

Database caching not working ?

Hello, I made a website that allow users to post pictures. Each user's page propore pulique his phot...

0 Likes
1 Replies
posted 8 years ago

Existing Laravel 5.1 code working differently after Composer Update

I have the following model. class Property extends Model { public function bedroom() {...

0 Likes
1 Replies

Can't access data in pivot table

Hello, I'm having an issue with eloquent (outside of laravel) I can't get access to my data in the p...

0 Likes
3 Replies

¿Me podeis ayudar a relacionar 2 tablas mediante una tercera?

Quiero relacionar platos de comida con cierta cantidad de alimentos Tabla Recetas { id titulo descr...

0 Likes
2 Replies

Eloquent ORM: querying a limited set of results?

is there a way to do this with Eloquent without having to run Raw queries etc? (select count(`win`)...

0 Likes
1 Replies

Using custom model property to build model migration: good or bad practice?

In Laravel, I have a tiny yet annoying problem changing many files when I decide to change a databas...

0 Likes
0 Replies

Laravel Eloquent One to Many relation function not found

Scenario is: Model 1 = Room Model 2 = Hotel Model 3 = City Rooms belongs to Hotel, Hotel has many Ro...

0 Likes
1 Replies
posted 8 years ago

Database ->with access the with object

Hello, I've made the following Realations: Controller public function Editionen() { $editionbloc...

0 Likes
2 Replies

How to display result in datatable?

I bought an application script from themeforest. I want to do some modification on it. Application J...

0 Likes
2 Replies

re-model inheritance

I would like to have something that - in an object-oriented language - would be called inheritance....

0 Likes
1 Replies

problems rebuilding migrations table

Hi, I'm not sure what happened but I did a "php artisan migrate:status" from my vm and it...

0 Likes
4 Replies

Laravel datatables filtering relationship database needed some help

Hello there, How can filtering data of nested and many relations tables on this example Models Categ...

0 Likes
0 Replies

Database Many to Many to Many

Currently I have a Users table. Each user can have many interests. and each interest can have many p...

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.