Support the ongoing development of Laravel.io →

988 Threads

Pictures linked to posts

Hello, I'm trying to create a system that will link multiple images with posts, for example, I want...

0 Likes
6 Replies
Solved

chunkById - Method chunkById does not exist.

I am taking data from a junction table and want to chunk by id but the method is not recognized. Her...

0 Likes
1 Replies
Solved

Undefined Variable Laravel 4

Hi all, Im relatively new to laravel, but have been doing PHP for the last year with MySql, Im curre...

0 Likes
17 Replies
Solved

General error that field doesn't have a default value

I'm running into an error that I can't solve. The mentions online aren't giving me a viable solution...

0 Likes
4 Replies
Solved

take previous value in Laravel Excel

Hi guys! I'm currently trying to implement something like this but with laravel- Excel: link Excel:...

0 Likes
1 Replies
Solved
posted 9 years ago

Model to array / Model to json Not working

Hello,.. I am new in laravel, and I have a problem when going to transform the model into an array....

0 Likes
4 Replies
Solved

Infinite scroll on a table [L5]

Hello, a few months ago, I successfully implemented Infinite Scroll in Laravel 5 using this tutorial...

0 Likes
3 Replies
Solved

Call to undefined method Illuminate\Database\Query\Builder::lists()

I've just started to study Laravel using this course Laravel 5 Fundamentals but in lesson 22 I've a...

0 Likes
4 Replies
Solved

Validation Rule - Ignore on Update

Hi all - I'm stumped with rule validation on update. All the examples use a user class but if I crea...

0 Likes
3 Replies
Solved
posted 7 years ago

laravel queries calculating average

I want an average of all sales for the month of January in the whole table. My date_sold is in the f...

0 Likes
1 Replies
Solved

Saving checkbox value in to a database

My form: {{ Form::checkbox('portfolio', 0, false) }} By default checkbox is unchecked. In controlle...

0 Likes
2 Replies
Solved

Migrations

Hello, i'm new user of laravel and i tried use migrations relationship but it doesn't work. Can you...

0 Likes
1 Replies
Solved
posted 9 years ago

How Can I Use User class without namespace like laravel4 in laravel5(develop branch)

laravel4 app/models/User.php not exist namespace so php artisan tinker > (new User); is worked l...

0 Likes
6 Replies
Solved
posted 9 years ago

Naming Conventions for Model Classes

Hey, quick question. Laravel enforces naming conventions on its Models. If you name a Model "Us...

0 Likes
5 Replies
Solved
posted 7 years ago

Relationship problem. I want 'Student' to have MANY 'Invoices' and 'Results'

How would I achieve this? I am confused weather to use onetomany, hasmany, belongsto? Help me out.

0 Likes
4 Replies
Solved
posted 7 years ago

whereHas returns empty after upgrade to mysql 5.7

I'm working on an app written in laravel 4.2, running on mysql 5.5. After an upgrade of mysql to ver...

0 Likes
1 Replies
Solved

Looking for Eloquent equivalent to this basic query using "DISTINCT"

SELECT DISTINCT user_id FROM picks WHERE weeknum = 1 I'm having a hard time finding examples using &...

0 Likes
6 Replies
Solved

Maintaining only created_at or updated_at in an Eloquent model

Hi. I'm aware that this was often asked for in the past. There are basically two solution's that can...

0 Likes
2 Replies
Solved

login using user id in JWT Auth

Hi, I know , that exists way how to login users by theirs ids: Auth::loginUsingId($user_id) but how...

0 Likes
1 Replies
Solved
posted 7 years ago

Relation between 3 tables?

I have following tables: users (classic laravel table) events user_events in user_events I insert...

0 Likes
2 Replies
Solved

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.