app/Http/Controllers/Admin/DomainController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $domain =Domain::findOrFail($id);
        $domain ->delete();
        return redirect('/domain')->with('status','Все данные данного дамена удалены');
    }
public function destroy ( $ id ) { $ domain = Domain :: findOrFail ( $ id ) ; $ domain -> delete ( ) ; return redirect ( '/domain' ) -> with ( 'status' , 'Все данные данного дамена удалены'); }
Remove the specified resource from storage.
Remove the specified resource from storage .