コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Widget::destroy($id);
     alert()->overlay('Attention!', 'You deleted a widget', 'error');
     return Redirect::route('widget.index');
 }
コード例 #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Widget::destroy($id);
 }
コード例 #3
0
ファイル: WidgetController.php プロジェクト: Khande1n/ujval
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Widget::destroy($id);
     return Redirect::route('widget.index');
 }
コード例 #4
0
ファイル: WidgetController.php プロジェクト: jdmays/ls1
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Widget::destroy(1);
     return redirect('widgets')->with('status', 'Poof!');
 }
コード例 #5
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Widget::destroy($id);
     alert()->overlay('Hey!', 'You deleted the widget with id ' . $id);
     return \Redirect::route('widget.index');
 }