app/Http/Controllers/LoginController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\User  $users
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Request $request, $id)
    {
        $users = User::where('id', $id);
        $users->delete();
        return redirect()->route('admin')
                        ->with('success','User Berhasil Dihapus !');
    }
public function destroy ( Request $ request , $ id ) { $ users = User :: where ( 'id' , $ id ) ; $ users -> delete ( ) ; return redirect ( ) -> route ( 'admin' ) -> with ( 'success' , 'User Berhasil Dihapus !' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .