Support the ongoing development of Laravel.io →
Input Eloquent Packages

Suppose, I have these ardent models

class User extends \LaravelBook\Ardent\Ardent
{
     public $autoHydrateEntityFromInput = true;
     protected $fillable = array('username', 'password', 'address');
     protected $table = 'Users';
     public static $relationsData = array(
     'location'  => array(self::HAS_ONE, 'Location');
}

class Location extends \LaravelBook\Ardent\Ardent
{
     protected $fillable = array('address');
     protected $table = 'Locations';         
}

Now, when I write a controller code like this,

 $user = new User;
 $user->address = Input::get('address');
 $user->push();

It doesn't save the address data to address table

Last updated 3 years ago.
0

Did you find a solution for this?? this is exactly what i'm trying to do..

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.