app/Http/Controllers/Api/JobsController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Jobs $Jobs)
    {
        $jobs = $Jobs->orderBy('id', 'desc')->get();
        foreach ($jobs as $r):
            $r->user;
        endforeach;
        return $jobs;
    }
public function index ( Jobs $ Jobs ) { $ jobs = $ Jobs -> orderBy ( 'id' , 'desc' ) -> get ( ) ; foreach ( $ jobs as $ r ) : $ r -> user ; endforeach ; return $ jobs ; }
Display a listing of the resource.
Display a listing of the resource .