Support the ongoing development of Laravel.io →

4,606 Threads

Call to undefined method Illuminate\Database\Query\Builder

I've got two models: <?php namespace blog; class Posts extends \Eloquent { /** * The databas...

0 Likes
5 Replies
Solved

One to One: Inverse relationship not working

I have two models Groups and Roles, i can fetch the groups of a role, but if i try to fetch de roles...

0 Likes
3 Replies
Solved

How to create client-config driven api

So I am creating an API but it has some caveats. First off I have to be able to easily create models...

0 Likes
0 Replies

Any good practice of using multiple Eloquent instances to update the same row?

Hi all, As the following example, we create two Eloquent instances to fetch/update the same db row....

0 Likes
0 Replies

Overriding a construct in a Model class

I've been struggling as to why my "create" method was not saving as a mass assignment. Myt...

0 Likes
0 Replies

Creating checkboxes from database table

I have a database table with 2 columns, an auto incrementing ID and a name. I am trying to add check...

0 Likes
6 Replies
Solved

Multiple database connection to transfer data?

I have 2 mysql databases, I try to get data from source and transfer it target, also delete current...

0 Likes
3 Replies
Solved

AJAX Database Update on User clicking on a link

Hello, I don't know how to perform ajax requests. I have a table named images with a field called do...

0 Likes
2 Replies

SSH connection credentials

Hi everyone! I'm working on a backup system, that is connecting to remote servers via ssh. Is it pos...

0 Likes
1 Replies
posted 11 years ago

export database functionality for admin

Hi i making a laravel cms , i want a functinality , where admin can create backup the current data...

0 Likes
1 Replies
posted 10 years ago

Dump MySQL database using Laravel

Hi artisans, is there any way to dump the MySQL database in a Laravel up, I've tried some packages t...

0 Likes
5 Replies
Solved

Laravel 5 Json, google maps

I am new to json and laravel and I would like to put my question forward. I have a database table ca...

0 Likes
1 Replies

Laravel not connecting to FileMaker Database

Hi, Im building an app using frontend with Laravel and database as FileMaker... i tired few api's to...

0 Likes
0 Replies

How do I remove redundant index keyed results from JSON response?

I'm creating an API that dumps out query results to a json response in Lumen: $result = DB::select('...

0 Likes
2 Replies

Laravel 5.1 Query Problem

Hi, I have this code: public function clansearch(){ if(((isset($_GET['clanname'])) &&...

0 Likes
4 Replies

Custom pivot table that accepts null values, using attach does not work with null values. Why? How to work around?

Here are my models: class Group extends Eloquent { public function members() { return $...

0 Likes
2 Replies

Stuck on manytomany connection

Hi guys, I was trying to get some work done today, but I got stuck on something. I've got 3 tables:...

0 Likes
2 Replies
Solved

Implementing API operations (CRUD) Showing values for nested resources

Hey guys, I have been wanting to implement fast and easy the index and the show methods for my neste...

0 Likes
0 Replies

Eloquent eager loading: children are missing parent reference (sort of N+1)

Note: this is a crosspost of: http://stackoverflow.com/questions/33674198/laravel-eloquent-eager-loa...

0 Likes
0 Replies

Getting all from a polymorphic one-to-many relation with eager loading

I have a Favourite Model which will store many different types of favourites (favourite quiz, questi...

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