Support the ongoing development of Laravel.io →

4,314 Threads

Help with public static functions

I'm a member of Laracasts and have watched Jefferies video on public static functions. I am learning...

0 Likes
5 Replies
posted 10 years ago

change Mysql to Eloquent

Hello, I need change query from Mysql to Eloquent here is code SELECT SUM((id_user=7) * `commission...

0 Likes
0 Replies

Rearranging JSON output

I have this basic model of a Contest with several Events, where each Player can have one result per...

0 Likes
13 Replies
Solved
posted 10 years ago

how to sum column if id =value?

Hello, how to sum column commission if id in the same table =7 Thanks

0 Likes
3 Replies

optgroup remove

My model: class Boxstyle extends Eloquent { protected $fillable = array('BoxStyle'); my table...

0 Likes
0 Replies

very simple

I have a controller: $boxstyles = boxstyles::lists('boxstyle', 'id'); Model: protected $fillable = a...

0 Likes
3 Replies

i want make sql query with laravel Eloquent ORM

hi all i have 7 tables i want to use union and get sum of column this is query i want to do it "...

0 Likes
0 Replies
posted 10 years ago

How can I dynamically create a Model?

Example taken form http://stackoverflow.com/questions/26757452/laravel-eloquent-accessing-properties...

0 Likes
3 Replies
Solved

Laravel 4 booking system help needed with mysql and logic filtering functionality

I am building a Hotel Booking App and i got stuck with filtering a hotel and rooms while inserting a...

0 Likes
1 Replies

php artisan migrate command generate data in multiple schema's

i want to run migration for multiple schema's using pgsql. Please help ! Thanks

0 Likes
0 Replies
posted 10 years ago

Query Builder

please tell me how to do this off correct query select @a:=POW(max(count_votes), 1/10) from users;...

0 Likes
1 Replies

How to have "belongsToMany" on "belongsToMany"

Hi there, I got three models, which are 'User', 'Role', and 'Permission'. User to Role, Role to Perm...

0 Likes
0 Replies

how to return json data to view ?

Hello, How to return Json Data from function in controller to view Here is function public function...

0 Likes
3 Replies

[L5] Is there a package out there that adds Tree behavior traits to models?

What I mean is, when I have a table that has the columns parent_id and lft and rght I'd like to have...

0 Likes
1 Replies

create global object or variable

how to create global object or variable without singleton in laravel?

0 Likes
1 Replies

Storing time, date or datetime

I have a 'create event' form where I'd like for the user to be able to submit info along with a date...

0 Likes
2 Replies

Combined aggregate query in Eloquent

Hi I'm new to Laravel/Eloquent and am trying to use the following query with eloquent [L5]. 'SELECT...

0 Likes
0 Replies

Pagination via forms

Good day, i have a query which is being paginated. But i want to be able to paginate it via a form i...

0 Likes
1 Replies
Solved
posted 10 years ago

Returning HTML back to Blade

I have a bootstrap modal popup that I will pull in as an include where and when needed, so its very...

0 Likes
3 Replies
Solved

Create widgets on a website - View Composers?

My website has multiple data widgets that can be rendered for the user. These widgets are sub-views,...

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.