app/Http/Controllers/Api/CategoryController.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()
    {
        $categories = Category::orderBy('created_at')->get();
        dd(\Auth::id());
        return $this->formatJsonOutput($categories);
    }
public function index ( ) { $ categories = Category :: orderBy ( 'created_at' ) -> get ( ) ; return $ this -> formatJsonOutput ( $ categories ) ; }
Display a listing of the resource.
Display a listing of the resource .
//        dd(generate_token()); // //        dd(\Auth::id());