app/Http/Controllers/AdminUsersController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return string
     */
Remove the specified resource from storage.
@param  int  $id
@return string
Remove the specified resource from storage . @param int $id @return string
public function destroy($id)
    {
        return "Destroy";
        $user =User::findorFail($id);
    unlink(public_path().$user->photo->name);
    $user->delete();
           Session::flash('deleted_user','The user has been deleted');
        return redirect('/admin/users');
    }
public function destroy ( $ id ) { $ user = User :: findorFail ( $ id ) ; unlink ( public_path ( ) . $ user -> photo -> name ) ; $ user -> delete ( ) ; Session :: flash ( 'deleted_user' , 'The user has been deleted' ) ; return redirect ( '/admin/users' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
// //return "Destroy";