Support the ongoing development of Laravel.io →

4,602 Threads

Deleting DB-entry: findOrFail or destroy?

Hi, is there a difference between $go = Project::findOrFail($id); $go->delete(); and Project::de...

0 Likes
2 Replies

Best way of retreiving items with a condition on the relation

#The goal# What I'm trying to do is generate a new collection with all the Consultations ordered by...

0 Likes
3 Replies
Solved
posted 10 years ago

SQLSTATE[HY000] [2006] MySQL server has gone away

I am getting "SQLSTATE[HY000] [2006] MySQL server has gone away" sometimes..... has anyone...

0 Likes
0 Replies

Handling in model validation

I read everywhere that in model validation is best practice, but I don't know how to handle a failed...

0 Likes
3 Replies
Solved

Get last 10 tags, polymorphic many-to-many

Hello guys, how can I get last 10 used posts tags? http://help.laravel.io/bd1f15c318d5358b745f27afe3...

0 Likes
1 Replies

Seeding only new files

Hello! Is it possible to know which seeds ar allready seeded and which are new automatically with ar...

0 Likes
2 Replies
Solved

Wrong colums deleted??

Hello, I have some data displayed in table...lets asume like this: 1 - Title1 - Edit, Delete 2 - Tit...

0 Likes
1 Replies

Laravel 4 & json pagination

Hi, I want to create a javascript app that will use a json created by laravel. As there will be a lo...

0 Likes
1 Replies
posted 10 years ago

Inheritance

Is possibile to use inheritance in laravel model? I explain: is possible to exend a model, which ext...

0 Likes
0 Replies

Laravel Homestead, Vagrant SSH and Database Management on VM

Greetings Laravel Community! As you can tell, I'm new- that is, I've so far not caused many visible...

0 Likes
1 Replies

View by date and count

I need to display data like so: July 2014: A...

0 Likes
0 Replies

Return specific column

$this->model->find($id)->tags()->get()->toJson(); Not return columns the table tags I...

0 Likes
1 Replies

Can't upload a photo to laravel

Hello everyone I'm trying to add some products to my db and I have to upload photo of this product....

0 Likes
14 Replies
posted 10 years ago

Adding Foreign Key Constraint for Char() Data Type

I'm using migrate to add foreign key constraints to my tables and I want to link two columns that ar...

0 Likes
0 Replies

Where can I keep my collection filters?

Hi, I have controller filters like those: <?php $stats = Stats::all(); $stats_today = $stats-...

0 Likes
4 Replies

/MySqlGrammar.php - Maximum function nesting level of '500' reached, aborting!

I'm getting an error when I wanna insert a lot of items. How can I prevent this of being thrown? It...

0 Likes
3 Replies

Get column of other table in Laravel ORM from self referencing table get N level hierarchy JSON

i have two tables abc and def. i have models of these two tables named respectively Abc and Def. i A...

0 Likes
0 Replies

Eloquent where() statements

I'm trying make a function that returns false if there is no inventory available. I need it to searc...

0 Likes
1 Replies

Bizarre behavior of pagination

This is my controller: public function prontuario_index(){ $Prontuarios = Prontuarios::get(15);...

0 Likes
7 Replies

Performant queries on large data sets

I'm building a REST API for a large data set, and running into a performance issue I'm not sure how...

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