Support the ongoing development of Laravel.io →

4,606 Threads

Model timestamp scope Year

Hello, i'm trying to specify a scope to filter a timestamp by year The goal is to be able to do some...

0 Likes
2 Replies
Solved

Recursive condition on a relation.

So I got a small situation here i got a model for pages, with a all so known parent_id field as rela...

0 Likes
0 Replies

Modelname:where('some where condition') works fine in the controller .but if i try to run it inside any model or class it does not work

Hi Need some help.. I am building my own login model using a customuserProvider (it implements User...

0 Likes
2 Replies

problem in making login app

here it is my code: http://laravel.io/bin/yGXy8 when my entered value is match to database value it...

0 Likes
1 Replies

How to skip a row in laravel eloquent query builder with file_exists condition

This is for a search query based on many input fields, i'm doing if statements inside the query base...

0 Likes
2 Replies

Compare two objects in foreach

I have two arrays of objects and I want to check if ids of elements of both are the same then select...

0 Likes
0 Replies

Eloquent, select only rows where the relation exists

I am trying to select from a table, but I only want to select things that have an existing relations...

0 Likes
2 Replies
Solved

[HELP] USER edit form checkbox not checked - Entrust

this is my edit function: public function edit($id) { $user = $this->user->find...

0 Likes
1 Replies
posted 9 years ago

Convert SQL to Query Builder

Can anyone convert this to the Laravel 4 Query Builder please? SELECT cases.id, reference, (SELECT C...

0 Likes
0 Replies

No such table bill_user

I am trying to attach bills to a user which they can create themselves. However I am having problems...

0 Likes
2 Replies

Decimal getting truncated

Hi there, I have a field in my DB that was created with Schema builder, that is behaving unlike any...

0 Likes
1 Replies
Solved

Can we send data inside Get link to update fields in database?

I have button named Delegate and when user click on it, It must send user comment and selection to s...

0 Likes
0 Replies

query with variables

Can someone help me to "translate" this mysql query to laravel. SET @prev=0,@rownum=0; SEL...

0 Likes
1 Replies

New to laravel

Hi I need to create the following ability on a form to create/select: Country Province Town Suburbs...

0 Likes
1 Replies
Solved

DIsplay row if date column = todays date

I have a table of 'tips' which have many columns one of which is a date column.... The tips that are...

0 Likes
1 Replies

Migration problem: 'php artisan migrate' does not do anything for new migrations

I can successfully run and roll back the two default migrations (users and password resets) but it d...

0 Likes
3 Replies
Solved

How to Submit Forms with array fields [ Laravel 5 ]

Good day guys, base in my view function (create.blade.php). I displayed a table from my database and...

0 Likes
2 Replies

Retrieving all data from connected foreign table columns

Hey, I have one table which is connected with others with foreign keys. Order table: order_id custom...

0 Likes
0 Replies

Sorting by an Accessor?

I'm trying to sort on the value of an accessor, but I'm not entirely sure where to put it. The attac...

0 Likes
0 Replies

Foreign Key

hi i want to set foreign key for post table and user table but throw below error : [Illuminate\Da...

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.

© 2025 Laravel.io - All rights reserved.