Support the ongoing development of Laravel.io →

4,311 Threads

Response::json won't return response

I am having a weird problem with specific route in my Laravel REST API project. Here is a thing: I h...

0 Likes
0 Replies
posted 9 years ago

the chunk method

The chunk method is starting to piss me off. Anyone have trouble with it? Two things: first it doesn...

0 Likes
0 Replies
posted 9 years ago

Convert raw mysql to laravel eloquent

Hi, I am new to laravel eloquent and wanted to convert this to eloquent, can someone help me? thank...

0 Likes
1 Replies

How can I search multiple tables in laravel 5

I am able to search any column in one table at a time using the following code <?php namespace A...

0 Likes
1 Replies

How to search eloquent models with relations

Pretty much every app needs decent search engine. Nowadays specialized engines like ElasticSearch ar...

0 Likes
3 Replies

(integer) cast must be done in Homestead for Controller parameter

I am having a hard time searching for the cause of a discrepancy between my local dev environment (H...

0 Likes
4 Replies
posted 9 years ago

Lazy property in Eloquent models.

Hi everyone. I'd like to access a property with the total of rows of a given model as a lazy propert...

0 Likes
2 Replies
Solved

eloquent relationship many-to-many with 2 tables?

so my table structure is this: users: id,........ user_favourites: id, user_id, favourite_id Both...

0 Likes
0 Replies

How to access additional user information stored in another table

Hi, I'm using Confide&Entrust package for user managment and now I'm storing additional user inf...

0 Likes
17 Replies

Accessing LDAP properties using strebl/l5-ldap-auth

I'm trying to setup Active Directory authentication in Laravel 5.1, which I was able to get authenti...

0 Likes
0 Replies

Only returning results where a 'with' matches criteria.

I'm trying to get only Products where they are in the selected 'category' and the selected 'range' P...

0 Likes
1 Replies
Solved

etrepat/baum First run

Hello there, is there any way to create all the categories after installing the package? or do i hav...

0 Likes
1 Replies

Get users belonging to the cities that belong to the selected region

Hi all. Please, help me. //Controller: public function show($slug) { $data = Region::fi...

0 Likes
1 Replies
Solved

Sort a collection by a minimum value within the model's relationship - with pagination

We're currently working on an e-commerce site. Our brokerage pages show ranges, and these ranges con...

0 Likes
0 Replies

Filtering collection data with $collection->filter()

I'm trying to filter the following collection using the collection filter() method: $collection = Wo...

0 Likes
2 Replies

updating Carbon instance when saving Model triggers dirty flag

I am having problems with Laravel setting the dirty flag (isDirty getDirty) when I update a Model ev...

0 Likes
0 Replies
posted 9 years ago

Access Query Builder of Eager relationship

Hello Community! All code is prototype, so syntax might be not 100% correct. I have 3 models A,B and...

0 Likes
0 Replies

Laravel Eloquent - Using pivot table's id as a foreign key in another table

i have a table that's belong to few other tables , at the moment of add new recored into it need all...

0 Likes
0 Replies

Variables in Schema builder

Hi, is it possible to have variables in the Schema builder? $table->string('us_ico')->default(...

0 Likes
0 Replies

Namespacing Problems

I got 30 odd classes and code written in L4.2. Using eloquent extensively i have always used XyzMode...

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.