Support the ongoing development of Laravel.io →

991 Threads

Retrieving 5 million records from database and comparing

Hello Everyone, I have a requirement of retrieving 5 million records from MySQL database and compari...

0 Likes
4 Replies
Solved

Eloquent ORM: Eager Loading Error: 'Call to a member function addEagerConstraints() on a non-object'

Unit Model: namespace App\Models\Qualification; use Illuminate\Database\Eloquent\Model; class Unit...

0 Likes
2 Replies
Solved

Save query on db listen event

I have a requirement that I need to save each and every query executed by the laravel program. I hav...

0 Likes
1 Replies
Solved
posted 8 years ago

SQLSTATE[42S02]: Base table or view not found: 1146 Table

Laravel 5.3 PHP: 7.0.3 First Error > [Illuminate\Database\QueryException] SQLSTATE[42S02]: Base t...

0 Likes
7 Replies
Solved

Unable to use Foreach loop with results of DB::Table

I'm unable to wrap my head around why I'm getting "Cannot use object of type stdClass as array&...

0 Likes
2 Replies
Solved

How To Solve This Image Insert

I'm creating a web site. And I have created a registration page. When I insert data, all the data su...

0 Likes
1 Replies
Solved

How to check if a Foreign Key exists

In my migration code I have: if (Schema::hasTable('activity_log')) { Schema::table('activity...

0 Likes
8 Replies
Solved

DB::select with raw where

Hey, I'm having a hard time compiling the DB:: or preferably Eloquent code for a query that involves...

0 Likes
6 Replies
Solved

Nothing to migrate.

I'm following the quickstart task list tutorial on laravel.com. https://laravel.com/docs/5.2/quickst...

0 Likes
2 Replies
Solved

Querying a model using conditions in relationship

Hello I'm making a webapp with categories, pages and banners that can be displayed on pages based on...

0 Likes
2 Replies
Solved

Artisan access denied for root@localhost

Hello, I have a problem with Laravel. My website has no problem accessing and performing operations...

0 Likes
5 Replies
Solved
posted 10 years ago

Foreign key not saving in migration

I'm trying to add a column to an already existing table. The column is a foreign key. This is my mig...

0 Likes
12 Replies
Solved

Using Illuminate/database outside of framework

I am trying to use the package with my CodeIgniter project by following the instructions given in re...

0 Likes
2 Replies
Solved
posted 10 years ago

User row fullname

The users wants to query by fullname. The table stores firstname and lastname as separate fields. Ho...

0 Likes
8 Replies
Solved

Multitenant with Multidatabase Auth Problem

[ASK : Multitenant with Multidatabase Auth Problem] fyi: i'm using redis as session management and w...

0 Likes
1 Replies
Solved

Update multiple user details when new user is registered in laravel php

Here is register new user code in php laravel-5.4 mysql ####################code here starts######...

0 Likes
2 Replies
Solved

Laravel Query Builder Issue with get()

I'm following the Laravel from Scratch series from laracasts and am trying to build my own website....

0 Likes
1 Replies
Solved

what should contain in pivot table

I'm trying to use pivot table. But I'm confused how should I define my database tables. Concept: Pac...

0 Likes
1 Replies
Solved

opposite eloquent method to grabbing related data

I am looking for the opposite of getting all Data that is related in a many to many relations, thus...

0 Likes
5 Replies
Solved

save() function doesn't work and does not output an error

Hello, I am experiencing a strange problem with the built-in User class in Laravel. Its save() funct...

0 Likes
10 Replies
Solved

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.