Example #1
0
 public function postDeleteid($id)
 {
     $user = \App\users::find($id);
     $st = \App\statususers::where('username', $user->name)->get();
     $status = \App\statususers::findOrNew($st[0]['id']);
     $status->delete();
     $user->delete();
     return redirect('/admin');
 }
Example #2
0
 public function getindex(Request $request)
 {
     $st = \App\statususers::where('username', Session::get('name'))->get();
     $status = \App\statususers::findOrNew($st[0]['id']);
     return view('viewsminisa_pj.index')->with('st', $status);
 }