Support the ongoing development of Laravel.io →

4,606 Threads

Laravel relationships

Hi, Sorry for noob question. I have a controller named Project, worknotes and attachments The relati...

0 Likes
2 Replies
Solved

Laravel Pagination from merge()

I've merges 2 Collections: use Illuminate\Pagination\LengthAwarePaginator as Paginator; ... $towni...

0 Likes
1 Replies

Form Model binding not working

I have a small form. when I hit edit button it redirect to the edit page and nothing to see anything...

0 Likes
2 Replies

Better Way to Associate foreign keys ?

Is there any better way to associate foreign keys with a record. This way is making my controller bu...

0 Likes
0 Replies

Connect Laravel with Marklogic

How to use marklogic super awesome document structuring and lightning fast search mechanism with lar...

0 Likes
0 Replies

a complicated query by laravel eloquent orm

projects id, name projects_services(1 project_id <-> M service_id) project_id, service_id serv...

0 Likes
0 Replies

How Do I Catch FindOrFail Exceptions? Or How Do I Detect an Empty Eloquent Result?

My goal isn't all that lofty. I want to detect when the following: $current = Promovote::where('mod...

0 Likes
3 Replies

Call to undefined method AdminDashboardController::getAfterFilters() while there is not really using a filter

Hello I am getting the Call to undefined method AdminDashboardController::getAfterFilters() error wh...

0 Likes
7 Replies
Solved

Query progress

Hello, I am looking for any method for progession rate generation during the execution of the query....

0 Likes
3 Replies

Dealing with Huge database

I am having a huge database with millions of records in different tables. It all works fine when I a...

0 Likes
0 Replies

Delete on update

This tables are just for example. Let's say we have two tables: order_items(id int, name string, pri...

0 Likes
0 Replies

Adding custom data to model from table using traits

I have my user model and I have a custom composer package I am working on which creates a custom tab...

0 Likes
0 Replies
posted 9 years ago

Proper way to pass subquery to select

I have query something like this $payIn = MtcPayment::select(array(DB::raw('GROUP_CONCAT(method)...

0 Likes
3 Replies

Laravel hasMany get one children

Hello guys, i have hasMany relationship between two tables like this: Parameter::where('property_id'...

0 Likes
1 Replies

Complex Queries

I need help with 2 queries. 1 First I am trying to get all Posts for a specific Category, I have a c...

0 Likes
1 Replies

Can't associate id to the same as users

I want to add the same club_id to the newly created user as the logged in user that is creating him...

0 Likes
11 Replies

Can't retrieve all values from specific column

How to do with Laravel 5.1 Eloquent to get this: "SELECT cont FROM news" ?

0 Likes
1 Replies
Solved

Form Request Forbidden Error

When I Updating a data it always displays Forbidden. i dont no how to solve it. here is my code bloc...

0 Likes
4 Replies
Solved

Related models: First build object hierarchy then save everything in one go

At the moment I am writing a parser for exam result files. There are 3 model classes: Exam, Question...

0 Likes
0 Replies

Refresh view when new articles get added

I'm using laravel 5.1 for a simple app. Right now I have a simple front-end and back-end. If I add n...

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.

© 2025 Laravel.io - All rights reserved.