Laravel. Update two tables at one POST method
<p>I have this code right there, this code is working fine and data is successfully stored to table "reports". But I also want to update Users table and their field Credits also. How can I do this in this function ? I also have the relationship between these two tables "reports" and "users".</p>

<pre><code>    public function giveCredits($id)
{
    $report = Report::where('id', $id)-&gt;first();
    $report-&gt;credits += Input::get('credits');
    $report-&gt;save();
    return redirect()-&gt;back();
}
</code></pre>

<p>Users Table</p>

<pre><code>Schema::create('users', function (Blueprint $table) {
    $table-&gt;increments('id');
    $table-&gt;string('name')-&gt;unique();
    $table-&gt;string('email')-&gt;unique();
    $table-&gt;string('password');
    $table-&gt;integer('credits');
    $table-&gt;enum('role', ['user', 'admin'])-&gt;default('user');
    $table-&gt;rememberToken();
    $table-&gt;timestamps();
});
</code></pre>

<p>Reports table</p>

<pre><code>    Schema::create('reports', function (Blueprint $table) {
        $table-&gt;increments('id');
        $table-&gt;integer('user_id')-&gt;unsigned();
        $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users');
        $table-&gt;integer('credits');
</code></pre>