app/Http/Controllers/FuncionarioController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Funcionario  $funcionario
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $funcionario = Funcionario::find($id);
        $funcionario->delete();
        $funcionario->usuario()->delete();
        return response(200);
    }
public function destroy ( $ id ) { $ funcionario = Funcionario :: find ( $ id ) ; $ funcionario -> delete ( ) ; $ funcionario -> usuario ( ) -> delete ( ) ; return response ( 200 ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .