app/Http/Controllers/Api/ApplyController.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(Apply $apply)
    {
        $User = auth('api')->user();
        return $apply->mount($apply->where('user_id', $User->id)->get(), 'jobs');
    }
public function index ( Apply $ apply ) { $ User = auth ( 'api' ) -> user ( ) ; return $ apply -> mount ( $ apply -> where ( 'user_id' , $ User -> id ) -> get ( ) , 'jobs' ) ; }
Display a listing of the resource.
Display a listing of the resource .