1

Here's my Laravel/Ardent Model. I'm using auto-hydration.

class Party extends \LaravelBook\Ardent\Ardent {

public $autoHydrateEntityFromInput = true;
public $forceEntityHydrationFromInput = true;
protected $guarded = array();

protected $table = 'Parties';
public $timestamps = true;

use SoftDeletingTrait;

protected $dates = ['deleted_at'];
public static $rules = array(
   ...
);
public static $relationsData = array(...);

My controller code

public function postCreate()
{
    $party = new Party;
    $saveSuccess = $party->save();
    if($saveSuccess)
    {
    return Response::json([
            'status' => $saveSuccess
        ],
        200
    );
    }
}

It is NOT throwing ANY error or exception. But data is not getting saved either. What could be the reason?

Vishwajeet Vatharkar
  • 1,146
  • 4
  • 18
  • 42

0 Answers0