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