/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $destroy = ConfigMotivo::destroy($id);
     if ($destroy) {
         return response()->json(['status' => true]);
     }
     return response()->json(['status' => false]);
 }
 public function getCodeByMotivo($mot)
 {
     return ConfigMotivo::select('mot', 'descricao')->where('mot', '=', $mot)->first();
 }