Support the ongoing development of Laravel.io →

->get(); and foreach

Hey, i'm a bit of a newbie, and until now, everytime i had to pull more than 1 result from the datab...

0 Likes
1 Replies

Usage of namespaces with Laravel models.

I found namespaces usage of Laravel models being non-orthogonal. When you create relation, namespace...

0 Likes
2 Replies

Problems inserting record using Eloquent, Call to undefined method Illuminate\Database\Eloquent\Collection::save()

http://laravel.io/bin/Qd4Ma I can't figure out what is wrong about the db relationships that I have...

0 Likes
1 Replies

Is it worth it to use Laravel to write a full blog engine and more?

I am presently using WordPress as a blogging platform. I have read an article on Codeheaps that stat...

0 Likes
4 Replies

Lightbox slider not getting displayed

I have created a page in laravel blade, in which I am using a lightbox plugin combined with owl cara...

0 Likes
0 Replies
posted 10 years ago

Model deleting event does not work

<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Remi...

0 Likes
3 Replies
posted 10 years ago

Using multiple namespaces to one view?

I have an issue that i can't seem to solve. My issue: I have a view where i call multiple variables...

0 Likes
1 Replies

Naming Convention For Modal And Database Table

Hello All I am confused with naming convention in laravel for model name and database table name.I h...

0 Likes
0 Replies
posted 10 years ago

Extending A Common Model

I have several models which share a similar schema in the database, is there a way I can create a pa...

0 Likes
4 Replies
Solved

Form Model with Child table

Hey there, I would like to know, how can I bind a form to a model with another table. let's say for...

0 Likes
1 Replies

Eloquent chain relations

Hi all, I have tables Table Fields users id posts id, user_id, status_id status...

0 Likes
2 Replies
Solved
posted 10 years ago

Reach of Eloquent Model "touch"

Having a ancestry tree of more than 2 nodes (e.g. Great Grandparent, Grandparent, Parent, Child) is...

0 Likes
0 Replies
posted 10 years ago

Error: token_get_all()

Hi, I'm really new in Laravel. I'm follow a example in CRUD pero I have this error: Call to undefine...

0 Likes
2 Replies
posted 10 years ago

SQL Join/LeftJoin Statements

I'm trying to join two queries with this statement: $item = Category::where('type', $item)...

0 Likes
3 Replies

Cache Tags on differing environments; Looking for an elegant solution

I understand why Cache Tags aren't allowed on the File Storage/Database cache drivers. However we d...

0 Likes
0 Replies

Changin session driver on the fly

Hi guys, I have a problem. I use two database in my application. I would like to change session driv...

0 Likes
0 Replies

Should you use models/repositories in Migrations?

Is it considered acceptable practice to use models in migrations? I've seen many code snippets where...

0 Likes
1 Replies
posted 10 years ago

Nothing happens when i change something in app

So i have deployed app with dploy.io, and everything works fine. Then i changed routes to test if it...

0 Likes
0 Replies

is it possible to convert data during migration?

I'm going to change some models' relationship from one-to-many to many-to-many. Is there a way do ap...

0 Likes
0 Replies

condition on belongsToMany

can i get data in single query ? $author = Author::where('id', '=', $authorId) ->where('salt', '=...

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.