app/Http/Controllers/UserController.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(User $user)
    {
     $user->organizations()->detach();
     $user->delete();
     return $user->all();
    }
public function destroy ( User $ user ) { $ user -> organizations ( ) -> detach ( ) ; $ user -> delete ( ) ; return $ user -> all ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .