Support the ongoing development of Laravel.io →

Can you use sum() or something like it in a whereHas() statement?

I have a model called 'Charges' which stores charges made by someone. I want to sum all the charges...

0 Likes
1 Replies
Solved
posted 10 years ago

How to determine if model support soft deleting?

Hello, is there a native way to determine if a model supports soft deleting? Something like: User::u...

0 Likes
2 Replies
Solved
posted 10 years ago

Checking if friends.

I want to check if people are friends. I want to check if in a row both the authenticated user exist...

0 Likes
5 Replies
Solved

Mobile & Desktop Pagination

It's possible to have two pagination settings for mobile & desktop? app/config/view.php If mobil...

0 Likes
1 Replies
Solved
posted 10 years ago

Alternatives to Administrator from FrozenNode

I really like they builder, it's awesome. It simplifies making admin section. But some features I di...

0 Likes
2 Replies
Solved

Database query: nested object

Hi, I am trying to create a beautiful API. Lets assume we have 2 tables, relationship one-to-many (a...

0 Likes
2 Replies
Solved
posted 10 years ago

Auth and testing

Bascily everything is working up to the point where I want to get the Auth::user()->id check the...

0 Likes
1 Replies
Solved
posted 10 years ago

DB Count on group by.

I have the following query that needs to count how many occurrences there is of the events (using an...

0 Likes
3 Replies
Solved

Model Observer And Events When Create

There are two ways to create new record in laravel $model = new MyModel; $model->field1 = 'value1...

0 Likes
1 Replies
Solved

Optional Route Parameters In Views

Hi everyone - I have a quick question on working with optional route parameters in views. I have a r...

0 Likes
3 Replies
Solved
posted 10 years ago

{{trans('messages.title')}} use vars something like $title

Hi, Is it possible when I translate a title like {{trans('page.title')}},receive the value 'title'...

0 Likes
3 Replies
Solved

Laravel installer + project in github workflow?

Hi, I'm just starting with Laravel. I created a project using the installer: laravel new my-project...

0 Likes
3 Replies
Solved
posted 10 years ago

Error when running migrations

I'm trying a simple migration(give below), but I get the "SQL Syntax Error or Access Violation&...

0 Likes
2 Replies
Solved

Error Messages for custom Validation

Hey guys, I am having some trouble getting my error messages to show for my custom Validation class....

0 Likes
2 Replies
Solved

Password reset token not found in User table ?

I'm creating a password reset functions as descibed in the Laravel docs. I've generated the password...

0 Likes
3 Replies
Solved

Models properties

How do i make eloquent: NOT assume that my primary key is only named 'id' set the $timestamps prope...

0 Likes
8 Replies
Solved

Confused about relationship between routing/controllers

So it seems I don't really understand how to push actions and routes around. I have a form on the si...

0 Likes
2 Replies
Solved
posted 10 years ago

NGINX: L4 not working properly - regular PHP/HTML still works

I've got Fedora 20 on my dev machine and for smaller projects, tests and for learning purposes I'd l...

0 Likes
2 Replies
Solved

Configuring max execution time for "artisan migrate"

I am porting an application from Kohana with loads of data from both MySQL and MongoDB. I have a bun...

0 Likes
1 Replies
Solved
posted 10 years ago

Master Blade not extended for only 1 view

I have a master blade and views that work fine. But for 1 view, only the content from that view is s...

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