Support the ongoing development of Laravel.io →

4,311 Threads

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

Laravel Table Filter

So I have website based on Laravel framework. I have table and the filter for table to filter the it...

0 Likes
1 Replies
Solved

How to query a pivot table

I am looking to create a following system similar to Twitter, as far have come up with below. I am l...

0 Likes
0 Replies

User Roles on differents spaces

Hello, I would like your idea about a problem I have. My application has Users who have Roles and Pe...

0 Likes
0 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.