Support the ongoing development of Laravel.io →

4,599 Threads

Query builder not escaping quotes or backslashes correctly?

I have a searchbox users can use to search fields using the following query. (I've not copied in the...

0 Likes
0 Replies

Why aren't Eloquent $perPage and $table static properties?

I was wondering why the Eloquent properties $perPage and $table aren't static properties. It doesn't...

0 Likes
3 Replies

Eloquent Articles

Some misunderstandings people run into and some explanation of what is actually going on. asklagbox...

0 Likes
1 Replies

Scope in eloquent overrides my select statement

I have a scope that looks like this public function scopeNotDefault() { return $this->where('...

0 Likes
1 Replies
posted 8 years ago

foreign key not working

Hi, I just have two tables "clients" and "courses" and I would like to add in &q...

0 Likes
1 Replies

Multi Database based in url

Hello, I am developing an app that will have a global database and 1 specific database for the clien...

0 Likes
1 Replies

Laravel Undefined variable when passing variable

Beginner question : I'm passing the $wordsRow variable from the WordsController to the results2 blad...

0 Likes
1 Replies
posted 8 years ago

SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Hi, I'm starting to learn Laravel, but I'm encountering a big error for the database connection that...

0 Likes
12 Replies

Select from two tables and show everything

I want to show on the page data from two tables but with a little condition and I can't figured it o...

0 Likes
1 Replies
Solved

Laravel Eloquent Model Does not return anything or show any error

Hi, My Eloquent Model is here- <?php namespace App; use Illuminate\Database\Eloquent\Model; cl...

0 Likes
0 Replies

Codeception writes in production db and reads from testing

I am trying to write functional tests for my app. I am using Laravel 5.2 and Codeception. I have a s...

0 Likes
1 Replies
Solved

How to store a empty value as null in a Decimal field

Hi there, I have a problem when I try to store a empty string into the database, laravel stores it a...

0 Likes
4 Replies

Calling eloquent relation multiple times doesn't return data

I'm having this strange behavior in Laravel 5.1 where when I call the relation of an eloquent model...

0 Likes
0 Replies

Changing Eloquent models database connection at runtime

Is there any way to force Eloquent models to re resolve the connection they were instantiated with?...

0 Likes
3 Replies
Solved

Help Undefined Offset Error

Hi. This is a code for search. Anyway each time i try to search with a term that is NOT in the datab...

0 Likes
0 Replies

PROBLEM: Multiple store of data using attach().

Im getting this error "Undefined offset: 1" what should I change here: Controller: pub...

0 Likes
0 Replies

array_merge(): Argument #2 is not an array

I get this error when I try to edit my users array_merge(): Argument #2 is not an array I've tried...

0 Likes
7 Replies
Solved

storing data in laravel

I'm trying to store the following incoming data into the DB, and it is successfully stored except on...

0 Likes
0 Replies

I don't get migration...

I just don't understand this concept of migrations could someone explain it in simple terms.. I know...

0 Likes
1 Replies

jQuery autocomplete not working if data taken from DB

Hi, jquery autocomplete does not work if i try to get data from a db table. It works if i define the...

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