Support the ongoing development of Laravel.io →

4,303 Threads

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

multiple File Upload

Hi there, I'm try to integrate jqueryFileUpload in my larvel 5.2 project. I can upload the images o...

0 Likes
3 Replies

Problems with Auth::user()

Hi, this should be easy to do, but I'm getting an error and at this point I reallly don't know where...

0 Likes
4 Replies
Solved

Easy endless scrolling via jQuery.jscroll and Laravel paginator

I stumbled onto this suuuper simple way to initialize an endless scroller through jQuery Here is the...

0 Likes
5 Replies

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
posted 7 years ago

Artisan migrations - MODELS, and autogenerated code!

A basic and easy question... If you make a migration using "php artisan make:migration create_[...

0 Likes
1 Replies

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

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

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

Call to undefined method Modules\Oauth\Repositories\Eloquent\EloquentMemberRepository::attempt()

$email = $request->get('email'); $password = $request->get('password'); $password = md5($p...

0 Likes
0 Replies
posted 7 years ago

model save

Hi, I'm wondering if i'm the only one who got null when I save a model instead of true previously ?...

0 Likes
0 Replies

Saving multiple data in database

What should I change to save multiple data here? Thanks in advance. This should be the output fsr_nu...

0 Likes
0 Replies

Eloquent Lookup Tables and Dynamic Model Creation

So I've been working on a project for a few weeks now and have just picked up Laravel because of it...

0 Likes
0 Replies

Sync or attach by something other than an ID?

I'm following along with examples in the docs, and am playing around with many to many relationships...

0 Likes
4 Replies

Undefined Variable 'posts' - Laravel 5

In my ShowController, I returned a view with variable posts, like <?php namespace App\Http\Contr...

0 Likes
1 Replies

Handling big amounts of related models (creation and updates)

Hi, I've got the following 2 models: Share -> hasMany() -> Shareprices in a Console Command sc...

0 Likes
0 Replies

Query a many to many relationship inside another relationship.

Hello guys, i have been a little confusing to build a query as described bellow: I have a model call...

0 Likes
0 Replies

Json response removes key in array :(

Hi dd my array looks like this: array:8 [▼ 0 => "promo\1\images\2.jpg" 1 => &quo...

0 Likes
3 Replies
Solved

How To Change In Percent

Gaes How To value change in percent $chartDukungan = $dukungan->map(function ($item) {...

0 Likes
5 Replies
posted 7 years ago

Undefined property: Illuminate\Database\Eloquent\Collection::$class_name

Hi, I'm new to Laravel framework. I'm not sure I understand how the Eloquent/Model/Database stuff wo...

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.

© 2024 Laravel.io - All rights reserved.