Support the ongoing development of Laravel.io →

4,606 Threads

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

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

Send Query from Controller to Nested View

Hi, I'm very new to laravel and started with laravel 5. I'm currently facing trouble where I can't s...

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

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
posted 10 years ago

What is better for a database? 1 table or more?

Hello. I want to create a database, but always ask myself if i am doing a good scheme. I would like...

0 Likes
4 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

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

Using model to check if the database contains values

I am using my model to query the database and then check if there are values in my DB and if the rec...

0 Likes
0 Replies

Artisan migration connection error

Hello! I have a problem with a new installation of Laravel 5.0. I´m installing Laravel in xampp with...

0 Likes
0 Replies

Views count | Twig Laravel Environment

How can I count the views for a post in Laravel+Twig Env?

0 Likes
2 Replies

Eager loading duplication

I'm trying to set up eager loading to prevent N+1 queries, but I'm finding that I have to duplicate...

0 Likes
0 Replies

Trying to get property of non-object

I am extremely confused why I am getting this error: ErrorException (E_UNKNOWN) - Trying to get prop...

0 Likes
0 Replies
posted 10 years ago

Laravel 5, Need to use model in template?

Hello, In Laravel 4, I use a Page::model to load footer data. Now that I am learning Laravel 5, Page...

0 Likes
3 Replies
Solved

if statment in query

Hello, I have two tables in db mt4_users and mt4_trades the realtion btween two tables is login_name...

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