app/Http/Controllers/UserController.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()
    {
        $users = User::all();
        $ret = [
            'success'   => 'true',
            'data'      => $users
        ];
        return response()->json($ret, 200);
    }
public function index ( ) { $ users = User :: all ( ) ; $ ret = [ 'success' => 'true' , 'data' => $ users ] ; return response ( ) -> json ( $ ret , 200 ) ; }
Display a listing of the resource.
Display a listing of the resource .