app/Http/Controllers/Dashboard/UsersEmpController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\User  $user
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $user = User::find($id);
        File::delete(('public/uploads/images/user_images/' . $user->user_img));
        $user->detachPermissions();
        $user->attachRoles();
        $user->delete();
		session()->flash('success', "تم المسح بنجاح");
        return redirect('admin/usersemps');
    }
public function destroy ( $ id ) { $ user = User :: find ( $ id ) ; File :: delete ( ( 'public/uploads/images/user_images/' . $ user -> user_img ) ) ; $ user -> detachPermissions ( ) ; $ user -> attachRoles ( ) ; $ user -> delete ( ) ; session ( ) -> flash ( 'success' , " تم المسح بنجاح"); return redirect ( 'admin/usersemps' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .