app/Http/Controllers/FormController.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()
    {
        $forms = Form::all();
        return FormResource::collection($forms);
    }
public function index ( ) { $ forms = Form :: all ( ) ; return FormResource :: collection ( $ forms ) ; }
Display a listing of the resource.
Display a listing of the resource .
// Get Forms // Return collection of forms as a resource