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';
}
Did you define either $fillable or $guarded in the model?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community