Support the ongoing development of Laravel.io →
Database Eloquent

Retrieving records works correctly but updating items through save() does not do anything. It doesn't throw any errors.

$property = Property::where('property_id','Agent Mark')->first();
$property->property_metadata = "update this";
$property->save();

Here is my configuration


'sqlite' => array(
    'driver'   => 'sqlite',
    'database' => __DIR__.'/../database/property.db',
    'prefix'   => '',
)

I am using multiple connections and I have this on my model.

use Illuminate\Database\Eloquent\Model as Eloquent;

class Property extends Eloquent {

	protected $table = 'property';
	protected $connection = 'sqlite';

}
Last updated 3 years ago.
0

Did you define either $fillable or $guarded in the model?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

geocine geocine Joined 10 Feb 2014

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.