Support the ongoing development of Laravel.io →

4,311 Threads

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 9 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 9 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

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

Help with whereHas query

Hello, I am trying to query two hasMany relationships, if an id is in the url I would also like to p...

0 Likes
0 Replies

File upload with L5

I can get my file name into my database but how do you set the path for the file or image to upload...

0 Likes
1 Replies
Solved

create new column to a DB table programmatically via Schema Builder?

Hi there, is there a way to add, update and delete an additional column to an existing Model/DB tabl...

0 Likes
8 Replies
Solved

Why use Models????

If I use an MVC why can't I put all calls to the database inside my model? I'm watching Laracasts an...

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

© 2024 Laravel.io - All rights reserved.