app/Http/Controllers/ApiExerciciosController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $exercicio = new ExercicioModel($request->all());
        $exercicio->save();
        return $exercicio;
    }
public function store ( Request $ request ) { $ exercicio = new ExercicioModel ( $ request -> all ( ) ) ; $ exercicio -> save ( ) ; return $ exercicio ; }
Store a newly created resource in storage.
Store a newly created resource in storage .