app/Http/Controllers/OutletController.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()
    {
        $data = Outlet::where('user_id', Auth::user()->id)->get();
        return response()->json([
            'data' => $data
        ]);
    }
public function index ( ) { $ data = Outlet :: where ( 'user_id' , Auth :: user ( ) -> id ) -> get ( ) ; return response ( ) -> json ( [ 'data' => $ data ] ) ; }
Display a listing of the resource.
Display a listing of the resource .