Call controller function in another controller
<p>I've a <code>PermissionController</code> with a <code>permission()</code> function like below, and i want to call the <code>permission()</code> function in another controller. How can i call my <code>permission()</code> function to another controller ?</p>

<p>here my <code>PermissionController</code></p>

<pre><code>class PermissionController extends Controller
{
    public function permission(){
    $checkPermission = User::leftJoin('employees', 'employees.user_id', '=', 'users.id')
    -&gt;leftJoin('positions', 'employees.position_id', '=', 'positions.id')
    -&gt;leftJoin('divisions', 'employees.division_id', '=', 'divisions.id')
    -&gt;where(function($query){
        $query-&gt;where('division_name', 'Sales')
                -&gt;orWhere('division_name', '=', 'Project Management')
                -&gt;orWhere('position_name', '=', 'Dept Head');
    })
    -&gt;get();

    }   
}
</code></pre>