Ejemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     if (Page::find($id)) {
         $a = Alias::where('page_id', $id)->get()->first();
         if (!$a) {
             Page::destroy($id);
         }
     }
     return \Redirect::back();
 }