Laravel Model create function returns column with null value
<p>In Laravel, When I run the following query, it returns a row with null values. </p>

<pre><code>//Cards.php

public function __construct(array $attributes = []) {
    $this-&gt;gateway = StripeGateway;
} 


protected $fillable = ['user_id', 'card_id', 'customer_id', 'exp_year', 'exp_month', 'funding', 'brand', 'last4'];

public function createNewCardFromCustomer($user_id, $customer)
    {

        $result = $this-&gt;create([
            'user_id' =&gt; $user_id,
            'customer_id' =&gt; $customer-&gt;id,
            'card_id' =&gt; $customer['sources']['data'][0]-&gt;id,
            'exp_year' =&gt; $customer['sources']['data'][0]-&gt;exp_year,
            'exp_month' =&gt; $customer['sources']['data'][0]-&gt;exp_month,
            'funding' =&gt; $customer['sources']['data'][0]-&gt;funding,
            'brand' =&gt; $customer['sources']['data'][0]-&gt;brand,
            'last4' =&gt; $customer['sources']['data'][0]-&gt;last4
        ]);

        return $result;

    }
</code></pre>

<p>Even the Model static create method receives the right parameters. And I've taken care of the mass assignment also. </p>